[BUGFIX] Replace /s JS regex flag(modifier) with [/s/S] 57/55157/2
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Tue, 19 Dec 2017 09:18:20 +0000 (10:18 +0100)
committerNicole Cordes <typo3@cordes.co>
Tue, 19 Dec 2017 18:44:11 +0000 (19:44 +0100)
to match all characters including new line.

Resolves: #83385
Releases: master
Change-Id: I5c36550ddf3503f16006800d417c819d47af7fc4
Reviewed-on: https://review.typo3.org/55157
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Nils Seinschedt <n.seinschedt@neusta.de>
Reviewed-by: Benjamin Kluge <b.kluge@neusta.de>
Tested-by: Benjamin Kluge <b.kluge@neusta.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/backend/Resources/Public/JavaScript/SvgTree.js

index 448fcfd..aa6150c 100644 (file)
@@ -437,7 +437,7 @@ define(
             icon: '',
           };
           Icons.getIcon(iconName, Icons.sizes.small, null, null, 'inline').done(function (icon) {
-            _this.data.icons[iconName].icon = icon.match(/<svg.*<\/svg>/is)[0];
+            _this.data.icons[iconName].icon = icon.match(/<svg[\s\S]*<\/svg>/i)[0];
 
             if (update) {
               _this.update();