Skip to content

Commit

Permalink
fix: allow dash and underscore in keys (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
jildertmiedema authored and tsvetomir committed Sep 28, 2018
1 parent 5c2d98f commit 74edcb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const translate = (doc, lang, force) => {
};


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

module.exports = translate;

0 comments on commit 74edcb9

Please sign in to comment.