~sub linking regex should only match strings starting with alpha chars
This commit is contained in:
parent
38f7dba27f
commit
17ae89c085
|
@ -1,6 +1,6 @@
|
|||
import findAndReplace from 'mdast-util-find-and-replace'
|
||||
|
||||
const subGroup = '[\\w_]+'
|
||||
const subGroup = '[A-Za-z][\\w_]+'
|
||||
|
||||
const subRegex = new RegExp(
|
||||
'~(' + subGroup + '(?:\\/' + subGroup + ')?)',
|
||||
|
|
Loading…
Reference in New Issue