Skip to content

Commit

Permalink
Merge pull request #10 from makebit/patch-1
Browse files Browse the repository at this point in the history
Update xlocalize.js
  • Loading branch information
David Ellis committed Sep 15, 2017
2 parents 5ad9deb + defaead commit 6c68223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/xlocalize.js
Expand Up @@ -50,7 +50,7 @@ function mergeObjs() {
function processFile(filename, dirJSON) {
// Hacky, hacky RegExp parsing right now; replace with something better
var fileContents = fs.readFileSync(filename, "utf8");
var translatables = fileContents.match(/translate\s*\([^\),]*/);
var translatables = fileContents.match(/translate\s*\([^\),]*/g);
if(translatables) {
/* jshint loopfunc: true */
for(var i = 0; i < translatables.length; i++) {
Expand Down

0 comments on commit 6c68223

Please sign in to comment.