quotes: add quote searching
This commit is contained in:
@@ -12,6 +12,10 @@ def date_from_iso(date: str) -> datetime:
|
||||
return datetime.strptime(date, '%Y-%m-%dT%H:%M:%S.%fZ')
|
||||
|
||||
|
||||
def is_int(val: str) -> bool:
|
||||
return val.isdigit() or (val.startswith('+') or val.startswith('-')) and val[1:].isdigit()
|
||||
|
||||
|
||||
def parse_int(val: str, select: bool = True) -> Tuple[int, str]:
|
||||
try:
|
||||
val = int(val)
|
||||
|
||||
Reference in New Issue
Block a user