Skip to content

Commit 36491fb

Browse files
committed
chore: Use a non-remembered group in parsing regex
1 parent 8db9839 commit 36491fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parse-format/parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const match1to2 = /\d\d?/ // 0 - 99
88
const matchUpperAMPM = /[AP]M/
99
const matchLowerAMPM = /[ap]m/
1010
const matchSigned = /[+-]?\d+/ // -inf - inf
11-
const matchOffset = /([+-]\d\d:?\d\d|Z)/ // +00:00 -00:00 +0000 -0000 or Z
11+
const matchOffset = /(?:[+-]\d\d:?\d\d|Z)/ // +00:00 -00:00 +0000 -0000 or Z
1212
const matchAbbreviation = /[A-Z]{3,4}/ // CET
1313

1414
const parseTokenExpressions = {}

0 commit comments

Comments
 (0)