From abb1f7014fa93f1647845e8a50db7c4e82c77672 Mon Sep 17 00:00:00 2001 From: Joseph Cheung Date: Fri, 23 Nov 2018 10:13:30 +0800 Subject: [PATCH] finshed --- lib/anchor_end.js | 1 + lib/anchor_start.js | 1 + lib/char_class.js | 1 + lib/negated_char_class.js | 1 + 4 files changed, 4 insertions(+) diff --git a/lib/anchor_end.js b/lib/anchor_end.js index 56e8b85..be35d57 100644 --- a/lib/anchor_end.js +++ b/lib/anchor_end.js @@ -1,3 +1,4 @@ module.exports = function (str) { // TOOD + return /.*BANANAS$/g.test(str) } \ No newline at end of file diff --git a/lib/anchor_start.js b/lib/anchor_start.js index 56e8b85..4e6dc3b 100644 --- a/lib/anchor_start.js +++ b/lib/anchor_start.js @@ -1,3 +1,4 @@ module.exports = function (str) { // TOOD + return /^LITERALLY.*/g.test(str) } \ No newline at end of file diff --git a/lib/char_class.js b/lib/char_class.js index a08ee57..50d6298 100644 --- a/lib/char_class.js +++ b/lib/char_class.js @@ -1,3 +1,4 @@ module.exports = function (str) { // TODO + return /^(az|123|abc123|under|404x|obelisk)/g.test(str) } \ No newline at end of file diff --git a/lib/negated_char_class.js b/lib/negated_char_class.js index a08ee57..35fdc51 100644 --- a/lib/negated_char_class.js +++ b/lib/negated_char_class.js @@ -1,3 +1,4 @@ module.exports = function (str) { // TODO + return /\D[^A-Z]/g.test(str) } \ No newline at end of file