diff options
author | Joffrey F <joffrey@docker.com> | 2018-06-21 00:15:55 -0700 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2018-06-21 00:19:22 -0700 |
commit | 5af89904c9ad33b632305b53058ddc69190f56a9 (patch) | |
tree | de0201e6e7a945503da14a0e21f21c6d491d7816 /docker/utils/fnmatch.py | |
parent | 5a85cad54785bae45787b2584476c286301329e2 (diff) | |
download | docker-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.py | 1 |
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 + '$' |