Skip to content

Commit d4501ea

Browse files
committed
docs(regex)
1 parent 11f7f67 commit d4501ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/regex.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ let re = /(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})/u;
546546
capture2, // 第二个组匹配 01
547547
capture3, // 第三个组匹配 02
548548
position, // 匹配开始的位置 0
549-
S, // 原字符串 2015-01-05
549+
S, // 原字符串 2015-01-02
550550
groups // 具名组构成的一个对象 {year, month, day}
551551
) => {
552552
let {day, month, year} = args[args.length - 1];

0 commit comments

Comments
 (0)