From df6a97eec2f2a309fc85357fbb23c27472668cad Mon Sep 17 00:00:00 2001 From: pidanooo Date: Thu, 22 Aug 2019 22:43:27 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=87=91=E9=91=AB-exercise5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 提交 --- lib/anchor_end.js | 2 ++ lib/anchor_start.js | 2 ++ lib/char_class.js | 3 +++ 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..9f242ab 100644 --- a/lib/anchor_end.js +++ b/lib/anchor_end.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TOOD + const reg=/BANANAS$/; + return reg.test(str); } \ No newline at end of file diff --git a/lib/anchor_start.js b/lib/anchor_start.js index 56e8b85..844101f 100644 --- a/lib/anchor_start.js +++ b/lib/anchor_start.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TOOD + const pattern=/^LITERALLY/; + return pattern.test(str); } \ No newline at end of file diff --git a/lib/char_class.js b/lib/char_class.js index a08ee57..2feb948 100644 --- a/lib/char_class.js +++ b/lib/char_class.js @@ -1,3 +1,6 @@ module.exports = function (str) { // TODO + // b不行 数字可以 大写不行 + var reg=/^[auo14]/; + return reg.test(str); } \ No newline at end of file diff --git a/lib/negated_char_class.js b/lib/negated_char_class.js index a08ee57..4f29686 100644 --- a/lib/negated_char_class.js +++ b/lib/negated_char_class.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TODO + const reg=/^[^0-9][^A-Z]/; + return reg.test(str); } \ No newline at end of file From 397995f184d16167736e237d860331779c57847d Mon Sep 17 00:00:00 2001 From: pidanooo Date: Thu, 22 Aug 2019 22:44:03 +0800 Subject: [PATCH 2/2] Create .DS_Store --- .DS_Store | Bin 0 -> 6148 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..9a441e4611ef8d3b85c328ab432fbf5ecef6efba GIT binary patch literal 6148 zcmeHKyH3ME5S#@gg-4N+(j^rVHH{U8f);*&B#tZ~i4h6C8~%Y`;QROhnBBb~Y+NG& zyVC94-R_*dBl*q;Kt@mH888GeU{e(B^q5ZfhIUf&9#M3S%SAn#F6t@Ay5MgxefJEf zsBnu-=l#zaJ9#&=QVzCx%&o9OjYrHooYxNL2oIQGhI{%7bFOfQHJPh6Po6uxeOxhn zf)Yz(Em3wDZyiR44KvrhRlIzu!b%Aj3WNfoKq&B!72uhzHaK()9}0v5p}?mCx zibcZ4(Y6jcy8;k1PMfiBzy8ErCx}JD#*s5LaVpWNlCBt%ZVuvf#*38SI656-Pv$!5 z$=l0|q>G2-mJTT#!-oQ)KwE)b9}e~Wzu>3Td&zH8ViXF50)I>a$;Q{?5sOM^>$mds ztj*bO*wi$y(GHD$JBo>R6my{a$gu@Io@<}+B4OjGtLVJZiSZ*~f`khNen5c_(U4A| literal 0 HcmV?d00001