commonplace
Advanced tools
Comparing version 0.1.14 to 0.1.15
@@ -264,8 +264,10 @@ var fs = require('fs'); | ||
if (locale[1] && locale[1].length == 2) { | ||
// `pt-br` should be `pt-BR`. | ||
locale[1] = locale[1].toUpperCase(); | ||
} else { | ||
// `sr-latn` should be `sr-Latn`. | ||
locale[1] = locale[1][0].toUpperCase() + locale[1].substr(1).toLowerCase(); | ||
if (locale[1]) { | ||
if (locale[1].length == 2) { | ||
// `pt-br` should be `pt-BR`. | ||
locale[1] = locale[1].toUpperCase(); | ||
} else { | ||
// `sr-latn` should be `sr-Latn`. | ||
locale[1] = locale[1][0].toUpperCase() + locale[1].substr(1).toLowerCase(); | ||
} | ||
} | ||
@@ -272,0 +274,0 @@ |
{ | ||
"name": "commonplace", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "url": "git://github.com/mozilla/commonplace.git", |
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
852963
11287