Skip to content

Commit 74edcb9

Browse files
jildertmiedematsvetomir
authored andcommitted
fix: allow dash and underscore in keys (#5)
1 parent 5c2d98f commit 74edcb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

translate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const translate = (doc, lang, force) => {
5454
};
5555

5656

57-
const isKey = val => !!val.match(/^[a-zA-Z0-9.]*$/);
57+
const isKey = val => !!val.match(/^[a-zA-Z0-9.\-\_]*$/);
5858

5959
module.exports = translate;
6060

0 commit comments

Comments
 (0)