MCPcopy Create free account
hub / github.com/YACReader/yacreader / isThemeHexColorString

Function isThemeHexColorString

common/themes/theme_json_utils.cpp:32–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32bool isThemeHexColorString(const QString &value)
33{
34 static const QRegularExpression colorRegex(
35 "^#(?:[0-9A-Fa-f]{3}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$");
36 return colorRegex.match(value).hasMatch();
37}
38
39QJsonObject normalizeThemeJson(const QJsonObject &json)
40{

Callers 2

populateMethod · 0.85
normalizeThemeJsonValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected