Skip to content

Commit

Permalink
allow dash and slash in file name regex
Browse files Browse the repository at this point in the history
  • Loading branch information
blitzher committed Mar 23, 2021
1 parent 36369c1 commit 41c53fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dnd-markdown",
"version": "1.4.0",
"version": "1.4.1",
"description": "",
"main": "src/parse.js",
"bin": {
Expand Down
4 changes: 2 additions & 2 deletions src/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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 */
Expand Down

0 comments on commit 41c53fc

Please sign in to comment.