Skip to content

Commit 15f416c

Browse files
authored
Update restrictedPatternsToCreate to avoid 130 or above layer path
1 parent 84362ea commit 15f416c

File tree

1 file changed

+1
-1
lines changed
  • packages/core/src/utils/page-path-utils

1 file changed

+1
-1
lines changed

packages/core/src/utils/page-path-utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const restrictedPatternsToCreate: Array<RegExp> = [
117117
/^\/(_search|_private-legacy-pages)(\/.*|$)/,
118118
/^\/(installer|register|login|logout|admin|me|files|trash|paste|comments|tags|share|attachment)(\/.*|$)/,
119119
/^\/user(?:\/[^/]+)?$/, // https://regex101.com/r/9Eh2S1/1
120-
/^(\/.+){500,}$/, // avoid deep layer path. see: https://regex101.com/r/L0kzOD/1
120+
/^(\/.+){130,}$/, // avoid deep layer path. see: https://regex101.com/r/L0kzOD/1
121121
];
122122
export const isCreatablePage = (path: string): boolean => {
123123
return !restrictedPatternsToCreate.some(pattern => path.match(pattern));

0 commit comments

Comments
 (0)