mirror of
https://github.com/clearml/clearml
synced 2025-01-31 17:17:00 +00:00
Fix exact_match_regex() in case of empty pattern
This commit is contained in:
parent
77d71819e8
commit
7b3a554fe9
@ -122,4 +122,4 @@ def validate_dict(obj, key_types, value_types, desc=''):
|
|||||||
|
|
||||||
def exact_match_regex(name):
|
def exact_match_regex(name):
|
||||||
""" Convert string to a regex representing an exact match """
|
""" Convert string to a regex representing an exact match """
|
||||||
return '^%s$' % re.escape(name)
|
return '^%s$' % re.escape(name or '')
|
||||||
|
Loading…
Reference in New Issue
Block a user