grunt-banana-checker
Advanced tools
Comparing version 0.4.0 to 0.5.0
# grunt-banana-checker Release History | ||
## v0.5.0 / 2016-03-18 | ||
* Don't crash when encountering file names that contain '.json' in the middle (Roan Kattouw) | ||
* Extract the regex for a JSON filename (James Forrester) | ||
* build: Bump various devDependencies to latest (paladox) | ||
## v0.4.0 / 2015-10-06 | ||
@@ -4,0 +9,0 @@ * Make disallowUnusedTranslations default to false (Ed Sanders) |
{ | ||
"name": "grunt-banana-checker", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "A grunt checker for the \"banana\" JSON i18n system provided by MediaWiki and jquery.i18n", | ||
@@ -25,6 +25,6 @@ "scripts": { | ||
"grunt-cli": "0.1.13", | ||
"grunt-contrib-jshint": "0.11.2", | ||
"grunt-contrib-watch": "0.6.1", | ||
"grunt-jscs": "2.1.0" | ||
"grunt-contrib-jshint": "1.0.0", | ||
"grunt-contrib-watch": "1.0.0", | ||
"grunt-jscs": "2.8.0" | ||
} | ||
} |
@@ -44,2 +44,3 @@ /*! | ||
translatedFiles, | ||
jsonFilenameRegex = /(.*)\.json$/, | ||
translatedData = {}, | ||
@@ -99,3 +100,3 @@ documentationMessageBlanks = [], | ||
value !== options.documentationFile && | ||
value.match( /.*.json/ ) | ||
value.match( jsonFilenameRegex ) | ||
); | ||
@@ -105,3 +106,3 @@ } ); | ||
translatedFiles.forEach( function ( languageFile ) { | ||
var language = languageFile.match( /(.*)\.json$/ )[ 1 ], | ||
var language = languageFile.match( jsonFilenameRegex )[ 1 ], | ||
languageMesages = messages( languageFile, language ), | ||
@@ -108,0 +109,0 @@ keys = keysNoMetadata( languageMesages, language ), |
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
23771
28
473