Added regexp for excluding digits.
This commit is contained in:
parent
28fd4eea95
commit
3fea35ff19
2 changed files with 5 additions and 0 deletions
|
|
@ -1236,6 +1236,10 @@ const QRegularExpression &RegExpBotCommand() {
|
|||
return result;
|
||||
}
|
||||
|
||||
QRegularExpression RegExpDigitsExclude() {
|
||||
return QRegularExpression("[^\\d]");
|
||||
}
|
||||
|
||||
QString MarkdownBoldGoodBefore() {
|
||||
return SeparatorsBold();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -288,6 +288,7 @@ const QRegularExpression &RegExpHashtag();
|
|||
const QRegularExpression &RegExpHashtagExclude();
|
||||
const QRegularExpression &RegExpMention();
|
||||
const QRegularExpression &RegExpBotCommand();
|
||||
QRegularExpression RegExpDigitsExclude();
|
||||
QString MarkdownBoldGoodBefore();
|
||||
QString MarkdownBoldBadAfter();
|
||||
QString MarkdownItalicGoodBefore();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue