Fix travis's syntax conventions errors
This commit is contained in:
2
index.js
2
index.js
@@ -164,7 +164,7 @@ module.exports = function (app, options) {
|
|||||||
p = PluralsForLocale[locale];
|
p = PluralsForLocale[locale];
|
||||||
} else {
|
} else {
|
||||||
// split locales with a region code
|
// split locales with a region code
|
||||||
let lc = locale.toLowerCase().split(/[_-\s]+/)
|
const lc = locale.toLowerCase().split(/[_-\s]+/)
|
||||||
.filter(function(el){ return true && el; });
|
.filter(function(el){ return true && el; });
|
||||||
// take the first part of locale, fallback to full locale
|
// take the first part of locale, fallback to full locale
|
||||||
p = MakePlural[lc[0] || locale];
|
p = MakePlural[lc[0] || locale];
|
||||||
|
|||||||
Reference in New Issue
Block a user