added paths to wikiwords...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-08-12 02:00:08 +03:00
parent eb02bf82f6
commit e7c34dd9f1

View File

@ -9,9 +9,13 @@
var WIKIWORD_PATTERN =
RegExp('('+[
// WikiWord
//'\\\\?(\\/|\\./|\\.\\./|>>|[A-Z][_a-z0-9]+[A-Z/])[_a-zA-Z0-9/]*',
'\\\\?\\/?(\\./|\\.\\./|>>|[A-Z][_a-z0-9]+[A-Z/])[_a-zA-Z0-9/]*',
// [path]
'\\\\?\\[[^\\]]+\\]',
// /some/path | ./some/path | ../some/path | >>/some/path
'(?:^|\\s)(|\\.|\\.\\.|>>)[\\/\\\\][^\\s]+'
].join('|') +')', 'g')
// XXX RENAME...