mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-17 08:31:38 +00:00
...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
70b9976536
commit
8517ed1d0f
7
wiki.js
7
wiki.js
@ -10,9 +10,10 @@
|
||||
//
|
||||
var quoteRegExp =
|
||||
RegExp.quoteRegExp =
|
||||
function(str){
|
||||
return str
|
||||
.replace(/([\.\\\/\(\)\[\]\$\*\+\-\{\}\@\^\&\?\<\>])/g, '\\$1') }
|
||||
RegExp.quoteRegExp
|
||||
|| function(str){
|
||||
return str
|
||||
.replace(/([\.\\\/\(\)\[\]\$\*\+\-\{\}\@\^\&\?\<\>])/g, '\\$1') }
|
||||
|
||||
var path2lst = function(path){
|
||||
return (path instanceof Array ? path : path.split(/[\\\/]+/g))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user