mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
chore: make all the regexes static const
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@ -54,11 +54,11 @@ struct GradleSpecifier {
|
||||
4 "jdk15"
|
||||
5 "jar"
|
||||
*/
|
||||
QRegularExpression matcher(
|
||||
static const QRegularExpression s_matcher(
|
||||
QRegularExpression::anchoredPattern("([^:@]+):([^:@]+):([^:@]+)"
|
||||
"(?::([^:@]+))?"
|
||||
"(?:@([^:@]+))?"));
|
||||
QRegularExpressionMatch match = matcher.match(value);
|
||||
QRegularExpressionMatch match = s_matcher.match(value);
|
||||
m_valid = match.hasMatch();
|
||||
if (!m_valid) {
|
||||
m_invalidValue = value;
|
||||
|
Reference in New Issue
Block a user