[ColorPicker] Switch Color matching to a faster and simpler Regex
The regex matches all 3-12 digit hex numbers and 3-20 character length strings, then actual colors are determined using QColor::isValid. This is similar to how color matching is handled in Konsole (utilities/konsole!297). This is faster than the manual matching (the Qt PCRE is scary fast) and reduces code complexity.
parent
93e9904d
Please register or sign in to comment