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

Commit

Permalink
fix finite set regex
Browse files Browse the repository at this point in the history
  • Loading branch information
arcticfalcon committed Oct 28, 2014
1 parent 4aa0646 commit 70401c6
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 70401c6

Please sign in to comment.