mirror of
https://github.com/cmallwitz/Financials-Extension.git
synced 2026-08-28 10:04:16 -05:00
11 lines
198 B
Python
11 lines
198 B
Python
import re
|
|
|
|
|
|
def is_positive_float(f):
|
|
return type(f) == float and f > 0.0
|
|
|
|
|
|
def is_date(s):
|
|
match = re.compile(r'^20\d\d-\d\d-\d\d$', flags=re.DOTALL).search(s)
|
|
return match is not None
|