From 8b46cb6fd0b296f8b3b72503f19a5c8e690116e7 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Sun, 6 Mar 2022 09:10:34 -0500 Subject: [PATCH] Fix issue in InputfieldRepeater where entity encoded quotes could get confused as hex color codes for repeater item colors feature --- .../Fieldtype/FieldtypeRepeater/InputfieldRepeater.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/modules/Fieldtype/FieldtypeRepeater/InputfieldRepeater.module b/wire/modules/Fieldtype/FieldtypeRepeater/InputfieldRepeater.module index c4e79e6f..bad0f8ba 100644 --- a/wire/modules/Fieldtype/FieldtypeRepeater/InputfieldRepeater.module +++ b/wire/modules/Fieldtype/FieldtypeRepeater/InputfieldRepeater.module @@ -477,7 +477,7 @@ class InputfieldRepeater extends Inputfield implements InputfieldItemList { $wrapLabel = str_replace($matches[0], '', $wrapLabel); $wrapIcon = $matches[1]; } - if(strpos($wrapLabel, '#') !== false && preg_match('/#([0-9a-fA-F]{3,})/', $wrapLabel, $matches)) { + if(strpos($wrapLabel, '#') !== false && preg_match('/(?