Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* FIX undefined 'r'

* FIX undefined rule
  • Loading branch information...
commit 909e4e556d4dac496fb488fcdad7bbadd84319b7 1 parent d2db2bb
@naholyr authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  plural-form.js
View
3  plural-form.js
@@ -74,6 +74,7 @@ function extractPluralForms(string) {
return (CACHE[string] = string.split(RE_PLURAL_SEPARATOR).map(extractPluralForm).map(function(plural) {
// Decode encoded escaped separator
plural.text = plural.text.replace(RE_ENCODED_SEPARATOR, DECODED_SEPARATOR);
+ return plural;
}));
}
// Accepts array [ruleCallback, message] or [message, ruleCallback] or {text:message, test:ruleCallback} or 'rule message'
@@ -123,7 +124,7 @@ function toNumber(s) {
}
function extractPluralRuleCallbackRange(rule) {
var ranges = [];
- r.split(RE_RANGES_SEPARATOR).forEach(function(s) {
+ rule.split(RE_RANGES_SEPARATOR).forEach(function(s) {
var match = RE_RANGE.exec(s);
if (!match) {
throw new Error("Invalid range: " + s);
Please sign in to comment.
Something went wrong with that request. Please try again.