use two slashes in RegExp strings for escapement (see http://stackoverflow.com/questions/7735749/fix-jslint-bad-escapement-warning-in-regex)
This commit is contained in:
@@ -25,7 +25,7 @@ var OpenLayers = {
|
||||
* {String} Path to this script
|
||||
*/
|
||||
_getScriptLocation: (function() {
|
||||
var r = new RegExp("(^|(.*?\\/))(OpenLayers.*?\.js)(\\?|$)"),
|
||||
var r = new RegExp("(^|(.*?\\/))(OpenLayers.*?\\.js)(\\?|$)"),
|
||||
s = document.getElementsByTagName('script'),
|
||||
src, m, l = "";
|
||||
for(var i=0, len=s.length; i<len; i++) {
|
||||
|
||||
Reference in New Issue
Block a user