Skip to content

Commit 804055d

Browse files
committed
Handle a mix of [_-] in datestring regex
1 parent d67fdb1 commit 804055d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/vizgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def create_mrf(input_files, config, layer_name, colormap, empty_tile):
247247
print('Generating MRF config ' + mrf_config)
248248
with open(mrf_config, 'w') as conf:
249249
xml = MRF_CONFIG_TEMPLATE
250-
match = re.findall(r'(\d{4}-\d{2,}-\d{2,})|(\d{4}-\d{2,})', str(filename))
250+
match = re.findall(r'(\d{4}[_-]\d{2,}[_-]\d{2,})|(\d{4}[_-]\d{2,})', str(filename))
251251
if len(match) > 0:
252252
for m in match[0]:
253253
if m != '':

0 commit comments

Comments
 (0)