northants-design-system 0.2.9 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.esm.js +2 -2
- package/build/index.esm.js.map +1 -1
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -19456,8 +19456,8 @@ var GoogleMap = function (_a) {
|
|
|
19456
19456
|
var title = _a.title, description = _a.description, iframe_html = _a.iframe_html, link_title = _a.link_title, link_url = _a.link_url, allowCookies = _a.allowCookies;
|
|
19457
19457
|
var cookiesAccepted = wereCookiesAccepted(allowCookies);
|
|
19458
19458
|
/* We extract the iframe source URL and check it actually goes to www.google.com/maps */
|
|
19459
|
-
var src_matches = iframe_html.match(/
|
|
19460
|
-
var embed_url = (src_matches === null || src_matches === void 0 ? void 0 : src_matches.length) == 1 ? src_matches[0] : '';
|
|
19459
|
+
var src_matches = iframe_html.match(/src="([^"]+)"/gi);
|
|
19460
|
+
var embed_url = (src_matches === null || src_matches === void 0 ? void 0 : src_matches.length) == 1 ? src_matches[0].replace("src=\"", "") : '';
|
|
19461
19461
|
if (embed_url) {
|
|
19462
19462
|
var map_matches = embed_url.match(/^https:\/\/www.google.com\/maps/gi);
|
|
19463
19463
|
embed_url = (map_matches === null || map_matches === void 0 ? void 0 : map_matches.length) == 1 ? embed_url : '';
|