mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04:00
fix: Use more strict gist id regex
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
56744db3a2
commit
db93b33eb3
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
||||||
import type { RegexOptions } from '../../../../external-types/markdown-it-regex/interface'
|
import type { RegexOptions } from '../../../../external-types/markdown-it-regex/interface'
|
||||||
import { GistMarkdownExtension } from './gist-markdown-extension'
|
import { GistMarkdownExtension } from './gist-markdown-extension'
|
||||||
|
|
||||||
const finalRegex = /^{%gist (\w+\/\w+) ?%}$/
|
const finalRegex = /^{%gist\s+(\w+\/\w+)\s*%}$/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Replacer for legacy hedgedoc 1 gist shortcodes.
|
* Replacer for legacy hedgedoc 1 gist shortcodes.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue