diff --git a/package.json b/package.json index 076a14c..c50d850 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dnd-markdown", - "version": "1.4.0", + "version": "1.4.1", "description": "", "main": "src/parse.js", "bin": { diff --git a/src/commands.js b/src/commands.js index 94804a5..6b31163 100644 --- a/src/commands.js +++ b/src/commands.js @@ -70,7 +70,7 @@ new Command( /** mdinclude */ new Command( CommandType.PARSE, - (t, p) => t.match(/^#mdinclude<([\w.]+)>/), + (t, p) => t.match(/^#mdinclude<([\w.\/-]+)>/), (t, p) => { const Parser = require("./parse"); @@ -82,7 +82,7 @@ new Command( } /* get the matching group */ - const name = t.match(/^#mdinclude<([\w.]+)>/)[1]; + const name = t.match(/^#mdinclude<([\w.\/-]+)>/)[1]; const recursiveParser = new Parser(path.join(p.wd, name), p.opts, p); /* keep the options the same */