Webinterface: Escape . correctly in RegExp
This commit is contained in:
parent
73fb669fd8
commit
f91b2bc17e
@ -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…
Reference in New Issue
Block a user