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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QRegularExpression RegExpDigitsExclude() {
|
||||||
|
return QRegularExpression("[^\\d]");
|
||||||
|
}
|
||||||
|
|
||||||
QString MarkdownBoldGoodBefore() {
|
QString MarkdownBoldGoodBefore() {
|
||||||
return SeparatorsBold();
|
return SeparatorsBold();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -288,6 +288,7 @@ const QRegularExpression &RegExpHashtag();
|
||||||
const QRegularExpression &RegExpHashtagExclude();
|
const QRegularExpression &RegExpHashtagExclude();
|
||||||
const QRegularExpression &RegExpMention();
|
const QRegularExpression &RegExpMention();
|
||||||
const QRegularExpression &RegExpBotCommand();
|
const QRegularExpression &RegExpBotCommand();
|
||||||
|
QRegularExpression RegExpDigitsExclude();
|
||||||
QString MarkdownBoldGoodBefore();
|
QString MarkdownBoldGoodBefore();
|
||||||
QString MarkdownBoldBadAfter();
|
QString MarkdownBoldBadAfter();
|
||||||
QString MarkdownItalicGoodBefore();
|
QString MarkdownItalicGoodBefore();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue