From b000942cd1feb775bdf6f9170d4a672c51f0b5aa Mon Sep 17 00:00:00 2001 From: luluhan Date: Sat, 6 Apr 2019 23:14:17 +0800 Subject: [PATCH] update --- lib/anchor_end.js | 3 +++ lib/anchor_start.js | 2 ++ lib/char_class.js | 2 ++ lib/negated_char_class.js | 2 ++ 4 files changed, 9 insertions(+) diff --git a/lib/anchor_end.js b/lib/anchor_end.js index 56e8b85..7d3fd2f 100644 --- a/lib/anchor_end.js +++ b/lib/anchor_end.js @@ -1,3 +1,6 @@ module.exports = function (str) { // TOOD + const regExp = /BANANAS$/; + return regExp.test(str); + } \ No newline at end of file diff --git a/lib/anchor_start.js b/lib/anchor_start.js index 56e8b85..c53b72e 100644 --- a/lib/anchor_start.js +++ b/lib/anchor_start.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TOOD + const regExp = /^LITERALLY/; + return regExp.test(str); } \ No newline at end of file diff --git a/lib/char_class.js b/lib/char_class.js index a08ee57..378e04f 100644 --- a/lib/char_class.js +++ b/lib/char_class.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TODO + const regExp = /^[aou14]/; + return regExp.test(str); } \ No newline at end of file diff --git a/lib/negated_char_class.js b/lib/negated_char_class.js index a08ee57..8f5f4d3 100644 --- a/lib/negated_char_class.js +++ b/lib/negated_char_class.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TODO + const regExp = /^[^0-9][^A-Z]/; + return regExp.test(str); } \ No newline at end of file