Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "js-gettext", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "gettext alternative for js", | ||
@@ -16,11 +16,11 @@ "main": "./src/index.js", | ||
"dependencies": { | ||
"commander": "^2.11.0", | ||
"commander": "^2.15.1", | ||
"glob": "^7.1.2" | ||
}, | ||
"devDependencies": { | ||
"ava": "^0.22.0", | ||
"eslint": "^4.8.0", | ||
"ava": "^0.25.0", | ||
"eslint": "^4.19.1", | ||
"husky": "^0.14.3", | ||
"lint-staged": "^4.2.3", | ||
"prettier": "^1.7.4" | ||
"lint-staged": "^7.0.0", | ||
"prettier": "^1.11.1" | ||
}, | ||
@@ -55,3 +55,2 @@ "directories": { | ||
"lint-staged": { | ||
"gitDir": "./", | ||
"linters": { | ||
@@ -58,0 +57,0 @@ "*.js": [ |
@@ -5,3 +5,3 @@ /** | ||
* @param {string} text | ||
* @param {sumber} limit | ||
* @param {number} limit | ||
*/ | ||
@@ -42,3 +42,3 @@ module.exports = (text, limit, debug = false) => { | ||
param += c; | ||
params.push(eval(param)); | ||
params.push(eval(param.replace(/\n/g, '\\n'))); | ||
if (params.length >= limit) { | ||
@@ -45,0 +45,0 @@ return {params, length: i}; |
@@ -8,4 +8,4 @@ /** | ||
'^' + // beginning of the string | ||
s.replace(/\./g, '\\s*\\.\\s*') + // dot can be surrounded by whitespaces | ||
'\\s*\\(\\s*' // opening parenthesis can be surrounded by whitespaces | ||
s.replace(/\./g, '\\s*\\.\\s*') + // dot can be surrounded by white spaces | ||
'\\s*\\(\\s*' // opening parenthesis can be surrounded by white spaces | ||
); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
169139
Updatedcommander@^2.15.1