Skip to content
Commit eb93ed96 authored by Jan Paul Batrina's avatar Jan Paul Batrina
Browse files

[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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment