Skip to content

Commit

Permalink
fix(build): allow importing files having numbers in extension (#1618)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban authored Nov 30, 2022
1 parent 8a488de commit 0565c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/markdown/plugins/snippet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const snippetPlugin = (md: MarkdownIt, srcDir: string) => {
* captures: ['/path/to/file.extension', 'extension', '#region', '{meta}']
*/
const rawPathRegexp =
/^(.+(?:\.([a-z]+)))(?:(#[\w-]+))?(?: ?(?:{(\d+(?:[,-]\d+)*)? ?(\S+)?}))?$/
/^(.+(?:\.([a-z0-9]+)))(?:(#[\w-]+))?(?: ?(?:{(\d+(?:[,-]\d+)*)? ?(\S+)?}))?$/

const rawPath = state.src
.slice(start, end)
Expand Down

0 comments on commit 0565c38

Please sign in to comment.