[diffoscope] 01/02: Fix default regexes, it should match nothing instead of everything
Ximin Luo
infinity0 at debian.org
Fri Jan 27 16:07:59 CET 2017
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository diffoscope.
commit 24f679adb8255cfdb5905bfbe54c942b82a34c44
Author: Ximin Luo <infinity0 at debian.org>
Date: Fri Jan 27 15:44:57 2017 +0100
Fix default regexes, it should match nothing instead of everything
---
diffoscope/comparators/utils/file.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/diffoscope/comparators/utils/file.py b/diffoscope/comparators/utils/file.py
index 40da313..8fa6e13 100644
--- a/diffoscope/comparators/utils/file.py
+++ b/diffoscope/comparators/utils/file.py
@@ -40,8 +40,8 @@ logger = logging.getLogger(__name__)
class File(object, metaclass=abc.ABCMeta):
- RE_FILE_TYPE = re.compile(r'.*')
- RE_FILE_EXTENSION = re.compile(r'.*')
+ RE_FILE_TYPE = re.compile(r'.^')
+ RE_FILE_EXTENSION = re.compile(r'.^')
if hasattr(magic, 'open'): # use Magic-file-extensions from file
@classmethod
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list