From: Сковорода Никита Андреевич Date: Mon, 14 Nov 2022 05:00:12 +0000 (+0300) Subject: fix: erroneous regex anchoring in nl locale X-Git-Tag: 2.30.0~22^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f15cbac17a5264a14bdfebe0226468a48f261c5e;p=thirdparty%2Fmoment.git fix: erroneous regex anchoring in nl locale --- diff --git a/src/locale/nl-be.js b/src/locale/nl-be.js index a1ab29586..e495ff14b 100644 --- a/src/locale/nl-be.js +++ b/src/locale/nl-be.js @@ -12,7 +12,7 @@ var monthsShortWithDots = monthsParse = [ /^jan/i, /^feb/i, - /^maart|mrt.?$/i, + /^(maart|mrt\.?)$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, diff --git a/src/locale/nl.js b/src/locale/nl.js index 7d0711261..b6d83c353 100644 --- a/src/locale/nl.js +++ b/src/locale/nl.js @@ -12,7 +12,7 @@ var monthsShortWithDots = monthsParse = [ /^jan/i, /^feb/i, - /^maart|mrt.?$/i, + /^(maart|mrt\.?)$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i,