diff --git a/.gitignore b/.gitignore index b512c09..420f7de 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -node_modules \ No newline at end of file +node_modules +yarn-error.log* +yarn.lock* \ No newline at end of file diff --git a/lib/meta.js b/lib/meta.js index a08ee57..410448b 100644 --- a/lib/meta.js +++ b/lib/meta.js @@ -1,3 +1,5 @@ module.exports = function (str) { // TODO + const reg = /\.$/; + return reg.test(str); } \ No newline at end of file diff --git a/lib/quantifier.js b/lib/quantifier.js index a08ee57..b41efac 100644 --- a/lib/quantifier.js +++ b/lib/quantifier.js @@ -1,3 +1,4 @@ module.exports = function (str) { // TODO + return /^\d+(\.jpe?g)$/.test(str); } \ No newline at end of file diff --git a/lib/split.js b/lib/split.js index a08ee57..92f472c 100644 --- a/lib/split.js +++ b/lib/split.js @@ -1,3 +1,4 @@ module.exports = function (str) { // TODO + return str.split(/\s*,\s*/); } \ No newline at end of file