Enable some more eslint checks

This commit is contained in:
Tom Hughes 2019-04-06 17:27:17 +01:00
parent 9256397e46
commit 8030e7b5d6
3 changed files with 20 additions and 5 deletions

View file

@ -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];
});
}