diff --git a/backend/spellbook/validators.py b/backend/spellbook/validators.py index 2cf044ea..d831f391 100644 --- a/backend/spellbook/validators.py +++ b/backend/spellbook/validators.py @@ -20,7 +20,7 @@ COMPARISON_OPERATORS = r'(?::|[<>]=?|!=|=)' NUMERIC_VARIABLE = r'(?:mv|manavalue|power|pow|toughness|tou|pt|powtou|loyalty|loy)' SCRYFALL_QUERY_ATOM = r'(?:-?(?:' + \ - r'(?:(?:c|color|id|identity)' + COMPARISON_OPERATORS + r'|(?:has|t|type|keyword|is):)(?:[^\s:<>!=]+|"[^"]")|' + \ + r'(?:(?:c|color|id|identity)' + COMPARISON_OPERATORS + r'|(?:has|t|type|keyword|is):)(?:[^\s:<>!=]+|"[^"]+")|' + \ r'(?:m|mana|devotion|produces)' + COMPARISON_OPERATORS + r'(?:\{' + MANA_SYMBOL + r'\})+|' + \ NUMERIC_VARIABLE + COMPARISON_OPERATORS + r'(?:\d+|' + NUMERIC_VARIABLE + r')' + \ r'))'