Skip to content
Open

pass #67

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .idea/exercise7.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

250 changes: 250 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions lib/blink.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
var marked = require('marked')

module.exports = function (str) {
var md = marked(str)
// TODO
return null
var md = marked(str)
// TODO
//return null;
return md.replace(/@@([^@]+)@@/g, '<blink>$1</blink>');
}
4 changes: 3 additions & 1 deletion lib/capture.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module.exports = function (str) {
// TODO
// TODO
const matchStr = str.match(/[0-9]+/)
return matchStr ? matchStr[0] : null;
}
2 changes: 2 additions & 0 deletions lib/capture_breakword.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module.exports = function (str) {
// TODO
const matchStr = str.match(/(?:^|\s)x=([0-9]+)(?:$|\s)/);
return matchStr ? matchStr[1] : null;
}
1 change: 1 addition & 0 deletions lib/quantified_group.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = function (str) {
// TODO
return /^(0x\w{2}[\s\n]+){8}$/.exec(str)
}
3 changes: 2 additions & 1 deletion lib/quotes.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = function (str) {
// TODO
// TODO
return str.match(/"([^"]*)"/g);
}
Loading