From 12cd313efaaf759e25e91dc76a64aa65df6f5e86 Mon Sep 17 00:00:00 2001 From: cindylugd Date: Sat, 1 Dec 2018 15:47:53 +0800 Subject: [PATCH 1/3] Update meta.js --- lib/meta.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/meta.js b/lib/meta.js index a08ee57..6a45788 100644 --- a/lib/meta.js +++ b/lib/meta.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TODO -} \ No newline at end of file + var regx=/\.$/; + return regx.test(str); +} From eac3f0751d2d6a70ff6d1be36945fc2d4371faa3 Mon Sep 17 00:00:00 2001 From: cindylugd Date: Sat, 1 Dec 2018 15:48:14 +0800 Subject: [PATCH 2/3] Update quantifier.js --- lib/quantifier.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/quantifier.js b/lib/quantifier.js index a08ee57..b3b1a41 100644 --- a/lib/quantifier.js +++ b/lib/quantifier.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TODO -} \ No newline at end of file + var regx=/^\d+\.(jpg|jpeg)$/; + return regx.test(str); +} From 3df488a844b6bec737156c68eb5ba8b9f9a33d9e Mon Sep 17 00:00:00 2001 From: cindylugd Date: Sat, 1 Dec 2018 15:48:29 +0800 Subject: [PATCH 3/3] Update split.js --- lib/split.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/split.js b/lib/split.js index a08ee57..7d832bf 100644 --- a/lib/split.js +++ b/lib/split.js @@ -1,3 +1,4 @@ module.exports = function (str) { // TODO -} \ No newline at end of file + return str.split(/\s*,\s*/); +}