Skip to content

Commit b1c2dca

Browse files
TinyMCE: potential fix for code scanning alert: Inefficient regular expression (#4491)
* Potential fix for code scanning alert no. 102: Inefficient regular expression Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for code scanning alert no. 109: Inefficient regular expression Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 7e5a141 commit b1c2dca

File tree

1 file changed

+1
-1
lines changed
  • js/mage/adminhtml/wysiwyg/tinymce

1 file changed

+1
-1
lines changed

js/mage/adminhtml/wysiwyg/tinymce/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ tinyMceWysiwygSetup.prototype =
353353

354354
parseAttributesString: function (attributes) {
355355
var result = {};
356-
attributes.gsub(/(\w+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/, function (match) {
356+
attributes.gsub(/(\w+)(?:\s*=\s*(?:(?:"((?:\\.|[^"\\])*)")|(?:'((?:\\.|[^'\\])*)')|([^>\s]+)))?/, function (match) {
357357
result[match[1]] = match[2];
358358
});
359359
return result;

0 commit comments

Comments
 (0)