mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-04 13:47:37 +03:00
Webinterface: Escape . correctly in RegExp
This commit is contained in:
parent
73fb669fd8
commit
f91b2bc17e
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ var SERVER = (location.protocol + '//' + location.hostname +
|
|||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
var ROOT_PATH = location.pathname.replace(new RegExp("/+[^/]+/*(/index\.html?)?$"), "") + '/';
|
||||
var ROOT_PATH = location.pathname.replace(new RegExp("/+[^/]+/*(/index\\.html?)?$"), "") + '/';
|
||||
|
||||
/**
|
||||
* time between updates of collections (milliseconds)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue