Enable some more eslint checks
This commit is contained in:
parent
9256397e46
commit
8030e7b5d6
3 changed files with 20 additions and 5 deletions
|
@ -313,7 +313,7 @@ L.OSM.share = function (options) {
|
|||
"\"": """,
|
||||
"'": "'"
|
||||
};
|
||||
return string === null ? "" : (string + "").replace(/[&<>"']/g, function(match) {
|
||||
return string === null ? "" : String(string).replace(/[&<>"']/g, function(match) {
|
||||
return htmlEscapes[match];
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue