mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00: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