diff options
author | Elizabeth Alexander Hunt <me@liz.coffee> | 2025-05-10 22:28:04 -0700 |
---|---|---|
committer | Elizabeth Alexander Hunt <me@liz.coffee> | 2025-05-10 22:44:45 -0700 |
commit | 00ae56948227238d9180c7a46420b2929fdbf3e1 (patch) | |
tree | 9fed29caa1e635da125d262359b8ffdd5e7dd0bf /utils | |
parent | 435c30da3f926cff5934e434824488e6c7a67ce6 (diff) | |
download | ci-00ae56948227238d9180c7a46420b2929fdbf3e1.tar.gz ci-00ae56948227238d9180c7a46420b2929fdbf3e1.zip |
fix forward slashes in identifier
Diffstat (limited to 'utils')
-rw-r--r-- | utils/validate_identifier.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/validate_identifier.ts b/utils/validate_identifier.ts index c8a5213..0c9242c 100644 --- a/utils/validate_identifier.ts +++ b/utils/validate_identifier.ts @@ -1,3 +1,3 @@ export const validateIdentifier = (token: string) => { - return (/^[a-zA-Z0-9_\-:. ]+$/).test(token) && !token.includes(".."); + return (/^[a-zA-Z0-9_\-:. \/]+$/).test(token) && !token.includes(".."); }; |