commonplace
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -259,3 +259,8 @@ var fs = require('fs'); | ||
var match = path_regex.exec(filepath); | ||
process_file(filepath, match[1], path.resolve(langpacks_path, match[1] + '.js')); | ||
var locale = match[1].toLowerCase().split('_'); | ||
if (locale[1]) { | ||
locale[1] = locale[1].toUpperCase(); | ||
} | ||
locale = locale.join('-'); | ||
process_file(filepath, locale, path.resolve(langpacks_path, locale + '.js')); | ||
}); | ||
@@ -262,0 +267,0 @@ } |
@@ -134,3 +134,3 @@ var fs = require('fs'); | ||
var patterns = [ | ||
/\{#\s*L10n(\(.+\))?:((.|\n)+)\s*#\}/im, | ||
/\{#\s*L10n(\(.+\))?:((.|\n)+?)\s*#\}/im, | ||
/\/\/ L10n(\(.+\))?:(.+)$/im, | ||
@@ -137,0 +137,0 @@ /\/\*\s*L10n(\(.+\))?:((.|\n)+?)\s*\*\//im |
{ | ||
"name": "commonplace", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "url": "git://github.com/mozilla/commonplace.git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
854728
83
11352
12