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 =
|
var quoteRegExp =
|
||||||
RegExp.quoteRegExp =
|
RegExp.quoteRegExp =
|
||||||
function(str){
|
RegExp.quoteRegExp
|
||||||
return str
|
|| function(str){
|
||||||
.replace(/([\.\\\/\(\)\[\]\$\*\+\-\{\}\@\^\&\?\<\>])/g, '\\$1') }
|
return str
|
||||||
|
.replace(/([\.\\\/\(\)\[\]\$\*\+\-\{\}\@\^\&\?\<\>])/g, '\\$1') }
|
||||||
|
|
||||||
var path2lst = function(path){
|
var path2lst = function(path){
|
||||||
return (path instanceof Array ? path : path.split(/[\\\/]+/g))
|
return (path instanceof Array ? path : path.split(/[\\\/]+/g))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user