Webinterface: Escape . correctly in RegExp

This commit is contained in:
Unrud 2017-08-04 14:58:59 +02:00
parent 73fb669fd8
commit f91b2bc17e

View File

@ -29,7 +29,7 @@ var SERVER = (location.protocol + '//' + location.hostname +
* @const * @const
* @type {string} * @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) * time between updates of collections (milliseconds)