From bb758617fe2e549df66d54d87d1884ec0d39d355 Mon Sep 17 00:00:00 2001 From: MartinsYong Date: Tue, 8 Oct 2019 20:21:20 +0800 Subject: [PATCH] push answers --- lib/meta.js | 2 +- lib/quantifier.js | 2 +- lib/split.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/meta.js b/lib/meta.js index a08ee57..65b83e9 100644 --- a/lib/meta.js +++ b/lib/meta.js @@ -1,3 +1,3 @@ module.exports = function (str) { - // TODO + return /\.$/.test(str) } \ No newline at end of file diff --git a/lib/quantifier.js b/lib/quantifier.js index a08ee57..152d5a0 100644 --- a/lib/quantifier.js +++ b/lib/quantifier.js @@ -1,3 +1,3 @@ module.exports = function (str) { - // TODO + return /\d+\.jp(eg|g)$/.test(str) } \ No newline at end of file diff --git a/lib/split.js b/lib/split.js index a08ee57..9588c04 100644 --- a/lib/split.js +++ b/lib/split.js @@ -1,3 +1,3 @@ module.exports = function (str) { - // TODO + return str.split(/\s*,\s*/) } \ No newline at end of file