mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-16 07:22:16 -07:00
Static regexes.
Co-authored-by: RickyRister <42636155+RickyRister@users.noreply.github.com>
This commit is contained in:
parent
d276cd7cce
commit
e0ac77db23
1 changed files with 4 additions and 4 deletions
|
|
@ -18,10 +18,10 @@ static const QString DECKSTATS_SUFFIX = "?include_comments=1&export_mtgarena=1";
|
||||||
|
|
||||||
bool parseDeckUrl(const QString &url, ParsedDeckInfo &outInfo)
|
bool parseDeckUrl(const QString &url, ParsedDeckInfo &outInfo)
|
||||||
{
|
{
|
||||||
QRegularExpression rxTappedOut("tappedout\\.net/(?:mtg-decks/)?([^/?#]+)");
|
static QRegularExpression rxTappedOut("tappedout\\.net/(?:mtg-decks/)?([^/?#]+)");
|
||||||
QRegularExpression rxArchidekt("archidekt\\.com/decks/(\\d+)");
|
static QRegularExpression rxArchidekt("archidekt\\.com/decks/(\\d+)");
|
||||||
QRegularExpression rxMoxfield("moxfield\\.com/decks/([a-zA-Z0-9_-]+)");
|
static QRegularExpression rxMoxfield("moxfield\\.com/decks/([a-zA-Z0-9_-]+)");
|
||||||
QRegularExpression rxDeckstats("deckstats\\.net/decks/(\\d+/[a-zA-Z0-9_-]+)");
|
static QRegularExpression rxDeckstats("deckstats\\.net/decks/(\\d+/[a-zA-Z0-9_-]+)");
|
||||||
|
|
||||||
QRegularExpressionMatch match;
|
QRegularExpressionMatch match;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue