Added regexp for excluding digits.

This commit is contained in:
23rd 2022-12-29 12:37:58 +03:00
parent 28fd4eea95
commit 3fea35ff19
2 changed files with 5 additions and 0 deletions

View file

@ -1236,6 +1236,10 @@ const QRegularExpression &RegExpBotCommand() {
return result;
}
QRegularExpression RegExpDigitsExclude() {
return QRegularExpression("[^\\d]");
}
QString MarkdownBoldGoodBefore() {
return SeparatorsBold();
}

View file

@ -288,6 +288,7 @@ const QRegularExpression &RegExpHashtag();
const QRegularExpression &RegExpHashtagExclude();
const QRegularExpression &RegExpMention();
const QRegularExpression &RegExpBotCommand();
QRegularExpression RegExpDigitsExclude();
QString MarkdownBoldGoodBefore();
QString MarkdownBoldBadAfter();
QString MarkdownItalicGoodBefore();