We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7927f0f + 89e5ce0 commit 6411c2cCopy full SHA for 6411c2c
src/util/cloud-function/cloud-functions-validator.ts
@@ -48,11 +48,7 @@ export class CloudFunctionsValidator {
48
}
49
50
private hasInvalidFilepathNaming(filepath: string): boolean {
51
- const validFilePathRegex = new RegExp(
52
- '^(\\/[-a-z\\d%_.~+]*)*' + // path
53
- '(\\?[;&a-z\\d%_.~+=-]*)?' + // query string
54
- '(\\#[-a-z\\d_]*)?$',
55
- );
+ const validFilePathRegex = /^(\[[\w-]+\]|[\w-]+|\/)+$/;
56
57
const matchResult = filepath.match(validFilePathRegex);
58
return matchResult === null;
0 commit comments