From ceb7bffdf44e2c873dc87bc616ea6671c6306deb Mon Sep 17 00:00:00 2001 From: cindylugd Date: Sat, 1 Dec 2018 17:08:22 +0800 Subject: [PATCH 1/5] Update blink.js --- lib/blink.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/blink.js b/lib/blink.js index c391a9f..83ee221 100644 --- a/lib/blink.js +++ b/lib/blink.js @@ -3,5 +3,5 @@ var marked = require('marked') module.exports = function (str) { var md = marked(str) // TODO - return null -} \ No newline at end of file + return md.replace(/@@([\w\W]+?)\@@/g, `$1`); +} From 1be0651504f9287ceaa2a99a3f5a73f20b15cc4e Mon Sep 17 00:00:00 2001 From: cindylugd Date: Sat, 1 Dec 2018 17:08:48 +0800 Subject: [PATCH 2/5] Update capture.js --- lib/capture.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/capture.js b/lib/capture.js index a08ee57..8f83737 100644 --- a/lib/capture.js +++ b/lib/capture.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TODO -} \ No newline at end of file + var result=str.match(/\d+/); + return result?result[0]:null; +} From c75b048575a717be171c257a59c877572184fbe9 Mon Sep 17 00:00:00 2001 From: cindylugd Date: Sat, 1 Dec 2018 17:09:08 +0800 Subject: [PATCH 3/5] Update capture_breakword.js --- lib/capture_breakword.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/capture_breakword.js b/lib/capture_breakword.js index a08ee57..b224f95 100644 --- a/lib/capture_breakword.js +++ b/lib/capture_breakword.js @@ -1,3 +1,6 @@ module.exports = function (str) { // TODO -} \ No newline at end of file + var reg=/\bx=(\d+)\b/; + var result=reg.exec(str); + return result&&result[1]; +} From 71a9a03b594bba34484d6113fbe787088faf21ee Mon Sep 17 00:00:00 2001 From: cindylugd Date: Sat, 1 Dec 2018 17:09:29 +0800 Subject: [PATCH 4/5] Update quantified_group.js --- lib/quantified_group.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/quantified_group.js b/lib/quantified_group.js index a08ee57..6c522cb 100644 --- a/lib/quantified_group.js +++ b/lib/quantified_group.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TODO -} \ No newline at end of file + var regx=/^(0x[0-9a-fA-F]{2}\s*){8}$/; + return regx.test(str); +} From a93ea0431aae4686214d65c55a79d525e7e9a469 Mon Sep 17 00:00:00 2001 From: cindylugd Date: Sat, 1 Dec 2018 17:09:50 +0800 Subject: [PATCH 5/5] Update quotes.js --- lib/quotes.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/quotes.js b/lib/quotes.js index a08ee57..42cee8a 100644 --- a/lib/quotes.js +++ b/lib/quotes.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TODO -} \ No newline at end of file + var regx=/\".*?\"/g; + return str.match(regx); +}