From 6301c90a993e9f62d105d0573ee6dad4a6643e9c Mon Sep 17 00:00:00 2001 From: ruanyf Date: Thu, 18 Oct 2018 19:59:33 +0800 Subject: [PATCH] =?UTF-8?q?docs(regex):=20fix=20=E5=85=B7=E5=90=8D?= =?UTF-8?q?=E7=BB=84=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/regex.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/regex.md b/docs/regex.md index 71390bf..8224d5b 100644 --- a/docs/regex.md +++ b/docs/regex.md @@ -550,7 +550,7 @@ let re = /(?\d{4})-(?\d{2})-(?\d{2})/u; S, // 原字符串 2015-01-02 groups // 具名组构成的一个对象 {year, month, day} ) => { - let {day, month, year} = args[args.length - 1]; + let {day, month, year} = groups; return `${day}/${month}/${year}`; }); ```