Skip to content

Commit

Permalink
Added regexp for excluding digits.
Browse files Browse the repository at this point in the history
  • Loading branch information
23rd committed Dec 29, 2022
1 parent 28fd4ee commit 3fea35f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/text/text_entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,10 @@ const QRegularExpression &RegExpBotCommand() {
return result;
}

QRegularExpression RegExpDigitsExclude() {
return QRegularExpression("[^\\d]");
}

QString MarkdownBoldGoodBefore() {
return SeparatorsBold();
}
Expand Down
1 change: 1 addition & 0 deletions ui/text/text_entity.h
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ const QRegularExpression &RegExpHashtag();
const QRegularExpression &RegExpHashtagExclude();
const QRegularExpression &RegExpMention();
const QRegularExpression &RegExpBotCommand();
QRegularExpression RegExpDigitsExclude();
QString MarkdownBoldGoodBefore();
QString MarkdownBoldBadAfter();
QString MarkdownItalicGoodBefore();
Expand Down

0 comments on commit 3fea35f

Please sign in to comment.