From 70401c69d443577a0396d957702c865e2d130a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Falc=C3=B3n?= Date: Tue, 28 Oct 2014 16:33:57 -0300 Subject: [PATCH] fix finite set regex --- js/lang.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/lang.js b/js/lang.js index 91c3c17..723bb63 100644 --- a/js/lang.js +++ b/js/lang.js @@ -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.