From fc9761d2eec8bdb67c24022a72de89827c7c9267 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Tue, 17 Jun 2014 11:18:40 +0100 Subject: [PATCH] Be more explicit about ids matching the whole id string --- loopy/context_matching.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loopy/context_matching.py b/loopy/context_matching.py index 27a93c816..57ccf9d27 100644 --- a/loopy/context_matching.py +++ b/loopy/context_matching.py @@ -95,7 +95,7 @@ def parse_id_match(id_matches): def re_from_glob(s): import re from fnmatch import translate - return re.compile(translate(s.strip())) + return re.compile("^"+translate(s.strip())+"$") if not isinstance(id_match, tuple): components = id_match.split("$") -- GitLab