Skip to content

Commit

Permalink
Use QRegularExpression. (#12)
Browse files Browse the repository at this point in the history
QRegEx has been replaced by QRegularExpression in latest versions of Qt.
karliss authored Jun 5, 2024
1 parent 0f12d5b commit 13d9236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cutter-plugin/YaraAddDialog.cpp
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ YaraAddDialog::YaraAddDialog(RVA offset, QWidget *parent)
QString name = QString(flag->name);
if (name.startsWith("str.")) {
name = name.replace("str.", "");
name = name.replace(QRegExp("[^A-Za-z0-9_]+"), "");
name = name.replace(QRegularExpression("[^A-Za-z0-9_]+"), "");
if (!name.isEmpty()) {
ui->nameEdit->setText(name);
}

0 comments on commit 13d9236

Please sign in to comment.