Skip to content

Commit

Permalink
added underscore to acceptable characters in path
Browse files Browse the repository at this point in the history
  • Loading branch information
00salmon committed Nov 30, 2019
1 parent 818a92d commit 67057d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/serializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function escapeString(name:string){
/\s/.test(name)
|| ["null", "false", "true"].includes(name)
|| /^\d/.test(name)
|| !(/^[a-zA-Z().]+$/.test(name))
|| !(/^[a-zA-Z()._]+$/.test(name))
) {
return "`" + name + "`";
}
Expand Down
1 change: 1 addition & 0 deletions test/features/Serializer.feature
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@ Feature: AST Serializer
| `foo*bar` |
| `foobar-1` |
| foo.bar.baz |
| foo.foo_bar |


0 comments on commit 67057d0

Please sign in to comment.