wiki/server/helpers/page.js
/**
   * Check if path is a reserved path
   */
Check if path is a reserved path
Check if path is a reserved path
isReservedPath(rawPath) {
    const firstSection = _.head(rawPath.split('/'))
    if (firstSection.length <= 1) {
      return true
    } else if (localeSegmentRegex.test(firstSection)) {
      return true
    } else if (
      _.some(WIKI.data.reservedPaths, p => {
        return p === firstSection
      })) {
      return true
    } else {
      return false
    }
  }
isReservedPath ( rawPath ) { const firstSection = _ . head ( rawPath . split ( '/' ) ) if ( firstSection . length <= 1 ) { return true } else if ( localeSegmentRegex . test ( firstSection ) ) { return true } else if ( _ . some ( WIKI . data . reservedPaths , p => { return p === firstSection } ) ) { return true } else { return false } }
Check if path is a reserved path
Check if path is a reserved path