We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5f33cf commit 0046a1eCopy full SHA for 0046a1e
src/neonutilities/aop_download.py
@@ -390,7 +390,7 @@ def validate_neon_site(site):
390
391
def validate_year(year):
392
# year = str(year)
393
- year_pattern = "20[12-99]{2}"
+ year_pattern = "20?(1[2-9]|2[0-9])"
394
if not re.fullmatch(year_pattern, year):
395
raise ValueError(
396
f'{year} is an invalid year. Year is required in the format "2017" or 2017, eg. NEON AOP data are available from 2013 to present.'
0 commit comments