diff --git a/lib/anchor_end.js b/lib/anchor_end.js index 56e8b85..b80c58d 100644 --- a/lib/anchor_end.js +++ b/lib/anchor_end.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TOOD -} \ No newline at end of file + var regex = /BANANAS$/; + return regex.test(str); +} diff --git a/lib/anchor_start.js b/lib/anchor_start.js index 56e8b85..2fa0292 100644 --- a/lib/anchor_start.js +++ b/lib/anchor_start.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TOOD -} \ No newline at end of file + var regex = /^LITERALLY/; + return regex.test(str); +} diff --git a/lib/char_class.js b/lib/char_class.js index a08ee57..667e33d 100644 --- a/lib/char_class.js +++ b/lib/char_class.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TODO -} \ No newline at end of file + var regex = /^[^bA-Z]/; + return regex.test(str); +} diff --git a/lib/negated_char_class.js b/lib/negated_char_class.js index a08ee57..c8fa10e 100644 --- a/lib/negated_char_class.js +++ b/lib/negated_char_class.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TODO -} \ No newline at end of file + var regex = /^[^0-9][^A-Z]/; + return regex.test(str); +}