diff --git a/lib/meta.js b/lib/meta.js index a08ee57..a069156 100644 --- a/lib/meta.js +++ b/lib/meta.js @@ -1,3 +1,4 @@ module.exports = function (str) { // TODO + return /\.$/g.test(str) } \ No newline at end of file diff --git a/lib/quantifier.js b/lib/quantifier.js index a08ee57..eced88e 100644 --- a/lib/quantifier.js +++ b/lib/quantifier.js @@ -1,3 +1,4 @@ module.exports = function (str) { // TODO + return /^\d+\.jpe?g$/g.test(str) } \ No newline at end of file diff --git a/lib/split.js b/lib/split.js index a08ee57..86a85b4 100644 --- a/lib/split.js +++ b/lib/split.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TODO + // return str.replace(/\s/g, '').split(',') + return str.split(/\s*,\s*/g) } \ No newline at end of file