mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-18 17:11:38 +00:00
added paths to wikiwords...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
eb02bf82f6
commit
e7c34dd9f1
@ -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...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user