Removed dotall regex flag (#9165)

Fixes compatibility with Chrome 61, Firefox 77, Safari 11.
This commit is contained in:
Minh Nguyễn
2022-06-15 15:32:20 -07:00
committed by GitHub
parent b5e2ea81a4
commit dc2e83ccaa

View File

@@ -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'