Skip to content

Commit

Permalink
Update validators.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeluigi authored Oct 5, 2022
1 parent cb956fe commit f3a2700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/spellbook/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
SCRYFALL_EXPRESSION_BRACKETS = r'(?:\(' + SCRYFALL_EXPRESSION + r'\)|' + SCRYFALL_EXPRESSION + r')'
SCRYFALL_QUERY_REGEX = r'^(?:' + SCRYFALL_EXPRESSION_BRACKETS + r'(?: (?:and |or )?' + SCRYFALL_EXPRESSION_BRACKETS + r')*)$'
SCRYFALL_QUERY_VALIDATOR = RegexValidator(regex=SCRYFALL_QUERY_REGEX, message='Invalid Scryfall query syntax.')
SCRYFALL_QUERY_HELP = 'Variables supported: mv, manavalue, power, pow, toughness, tou, pt, powtou, loyalty, loyalty, c, color, id, identity, has, t, type, keyword, is, m, mana, devotion, produces. Operators supported: =, !=, <, >, <=, >=, :. You can compose a "and" expression made of "or" expression, like "(c:W or c:U) and (t:creature or t:artifact)". You can also omit parentheses when not necessary, like "(c:W or c:U) t:creature". More info at https://scryfall.com/docs/syntax.'
SCRYFALL_QUERY_HELP = 'Variables supported: manavalue, mv, power, pow, toughness, tou, powtou, pt, loyalty, loy, color, c, identity, id, has, type, t, keyword, is, mana, m, devotion, produces. Operators supported: =, !=, <, >, <=, >=, :. You can compose a "and" expression made of "or" expression, like "(c:W or c:U) and (t:creature or t:artifact)". You can also omit parentheses when not necessary, like "(c:W or c:U) t:creature". More info at https://scryfall.com/docs/syntax.'

0 comments on commit f3a2700

Please sign in to comment.