diff --git a/lib/blink.js b/lib/blink.js index c391a9f..702e708 100644 --- a/lib/blink.js +++ b/lib/blink.js @@ -1,7 +1,7 @@ var marked = require('marked') module.exports = function (str) { - var md = marked(str) + var md = marked(str); // TODO - return null + return md.replace(/@@(.*?)@@+/g, '$1') } \ No newline at end of file diff --git a/lib/capture.js b/lib/capture.js index a08ee57..10c3803 100644 --- a/lib/capture.js +++ b/lib/capture.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TODO + const arr = str.match(/x=(\d+)/); + return arr ? arr[0].split('x=')[1] : null; } \ No newline at end of file diff --git a/lib/capture_breakword.js b/lib/capture_breakword.js index a08ee57..af1242a 100644 --- a/lib/capture_breakword.js +++ b/lib/capture_breakword.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TODO + const arr = str.match(/\b(x=(\d+)\b)/); + return arr ? arr[0].split('x=')[1] : null; } \ No newline at end of file diff --git a/lib/quantified_group.js b/lib/quantified_group.js index a08ee57..c526587 100644 --- a/lib/quantified_group.js +++ b/lib/quantified_group.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TODO + const regExp = /^(0x[a-zA-Z0-9]{2}\s+){8}$/g; + return regExp.test(str); } \ No newline at end of file diff --git a/lib/quotes.js b/lib/quotes.js index a08ee57..372ecd9 100644 --- a/lib/quotes.js +++ b/lib/quotes.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TODO + const arr = str.match(/\"([^\"]*)\"+/g); + return arr; } \ No newline at end of file