Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from arcticfalcon/master
Browse files Browse the repository at this point in the history
fix finite set regex
  • Loading branch information
dpgover committed Oct 28, 2014
2 parents e33d623 + 70401c6 commit 81ccdd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
return this._getMessage(key) !== null;
};

var regexFiniteSet = /{(\-?\d+(\.\d+)?[,\-?\d+(\.\d+)?]*)}\s(.+)/;
var regexFiniteSet = /{(\-?\d+(\.\d+)?[,\-?\d+(\.\d+)?]*)}/;
var regex = /({(\-?\d+(\.\d+)?[,\-?\d+(\.\d+)?]*)}\s(.+))|(([\[\]])(-Inf|\-?\d+(\.\d+)?),(\+?Inf|\-?\d+(\.\d+)?)([\[\]])\s(.+))/;
/**
* Gets the plural or singular form of the message specified based on an integer value.
Expand Down

0 comments on commit 81ccdd3

Please sign in to comment.