mirror of
https://github.com/PokeAPI/pokeapi
synced 2025-02-17 21:18:27 +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
|
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\-]+$")
|
namePattern = re.compile("^[0-9A-Za-z\-]+$")
|
||||||
|
|
||||||
def get_object(self):
|
def get_object(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue