Skip to content

Commit 476d237

Browse files
authored
Merge pull request #289 from cthoyt/patch-1
Fix warning in regex
2 parents 01838a0 + b6faaa9 commit 476d237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linkml_runtime/utils/pattern.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class PatternResolver():
3131

3232
# regular expression capturing the various use cases
3333
# for the optionally dot separated, curly braces bound, pattern syntax
34-
var_name = re.compile("{([a-z0-9_-]+([\.-_ ][a-z0-9]+)*)}", re.IGNORECASE)
34+
var_name = re.compile(r"{([a-z0-9_-]+([\.-_ ][a-z0-9]+)*)}", re.IGNORECASE)
3535

3636
def __init__(self, schema_view):
3737
# fetch settings from schema_view

0 commit comments

Comments
 (0)