summaryrefslogtreecommitdiff
path: root/docker/utils/fnmatch.py
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2018-06-21 00:15:55 -0700
committerJoffrey F <joffrey@docker.com>2018-06-21 00:19:22 -0700
commit5af89904c9ad33b632305b53058ddc69190f56a9 (patch)
treede0201e6e7a945503da14a0e21f21c6d491d7816 /docker/utils/fnmatch.py
parent5a85cad54785bae45787b2584476c286301329e2 (diff)
downloaddocker-py-c6024-improved_excludes.tar.gz
Improved .dockerignore pattern processing to better match Docker CLI behaviorc6024-improved_excludes
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'docker/utils/fnmatch.py')
-rw-r--r--docker/utils/fnmatch.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/docker/utils/fnmatch.py b/docker/utils/fnmatch.py
index 42461dd..cc940a2 100644
--- a/docker/utils/fnmatch.py
+++ b/docker/utils/fnmatch.py
@@ -111,4 +111,5 @@ def translate(pat):
res = '%s[%s]' % (res, stuff)
else:
res = res + re.escape(c)
+
return res + '$'