mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-04 19:12:30 +02:00
Removed dotall regex flag (#9165)
Fixes compatibility with Chrome 61, Firefox 77, Safari 11.
This commit is contained in:
@@ -112,7 +112,7 @@ export function rendererBackgroundSource(data) {
|
||||
|
||||
|
||||
source.url = function(coord) {
|
||||
var result = _template.replace(/#.*/su, ''); // strip hash part of URL
|
||||
var result = _template.replace(/#[\s\S]*/u, ''); // strip hash part of URL
|
||||
if (result === '') return result; // source 'none'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user