mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-10 06:04:18 +00:00
parent
ea12247133
commit
1890ad9512
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ class NameOrIdRetrieval():
|
|||
pk (in this case ID) or by name
|
||||
"""
|
||||
|
||||
idPattern = re.compile("^[0-9]+$")
|
||||
idPattern = re.compile("^-?[0-9]+$")
|
||||
namePattern = re.compile("^[0-9A-Za-z\-]+$")
|
||||
|
||||
def get_object(self):
|
||||
|
|
Loading…
Reference in a new issue