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
|
* {String} Path to this script
|
||||||
*/
|
*/
|
||||||
_getScriptLocation: (function() {
|
_getScriptLocation: (function() {
|
||||||
var r = new RegExp("(^|(.*?\\/))(OpenLayers.*?\.js)(\\?|$)"),
|
var r = new RegExp("(^|(.*?\\/))(OpenLayers.*?\\.js)(\\?|$)"),
|
||||||
s = document.getElementsByTagName('script'),
|
s = document.getElementsByTagName('script'),
|
||||||
src, m, l = "";
|
src, m, l = "";
|
||||||
for(var i=0, len=s.length; i<len; i++) {
|
for(var i=0, len=s.length; i<len; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user