Skip to content

Commit

Permalink
Merge pull request neo4j#3241 from angrykoala/remove-number-from-vali…
Browse files Browse the repository at this point in the history
…d-characters

Removes numbers from valid characters for labels
  • Loading branch information
angrykoala authored Apr 26, 2023
2 parents 423e78d + 13f9af4 commit 6b15409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cypher-builder/src/utils/escape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function normalizeString(str: string): string {
}

function needsEscape(str: string): boolean {
const validCharacter = /^[a-z0-9_]*$/i;
const validCharacter = /^[a-z_]*$/i;
return !validCharacter.test(str);
}

Expand Down

0 comments on commit 6b15409

Please sign in to comment.