Commit e3cc0790 authored by Conor Anderson's avatar Conor Anderson

Use re.search and not re.match.

parent 101b4e99
Pipeline #49736011 passed with stages
in 3 minutes and 38 seconds
......@@ -64,7 +64,7 @@ DEBUG = os.getenv('DEBUG', False)
if not DEBUG:
warnings.simplefilter(action='ignore', category=FutureWarning)
__version__ = "2.1.3"
__version__ = "2.1.4"
def download_file(url, filename):
if DEBUG:
......@@ -143,7 +143,7 @@ def find_station(name=None, province=None, period=None, type=None, detect_recode
if name is not None:
nmreg = re.compile(name, flags = re.IGNORECASE)
filt = filt[filt.Name.isin(list(filter(nmreg.match, filt.Name)))]
filt = filt[filt.Name.isin(list(filter(nmreg.search, filt.Name)))]
if filt.shape[0] == 0:
print("No results!")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment