[BUGFIX] Properly match html tags with data-* attributes
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / ContentObject / ContentObjectRenderer.php
index eeea1a0..a77ebb5 100644 (file)
@@ -3972,7 +3972,7 @@ class ContentObjectRenderer {
                                (?:
                                        (?:
                                                (?:
-                                                       \\s+\\w+                                # EITHER spaces, followed by word characters (attribute names)
+                                                       \\s+\\w[\\w-]*          # EITHER spaces, followed by attribute names
                                                        (?:
                                                                \\s*=?\\s*              # equals
                                                                (?>