Patch #551911: Escape . properly.

This commit is contained in:
Martin v. Löwis 2002-06-06 09:52:49 +00:00
parent 294bbf3a59
commit cdbc131f03

View file

@ -38,7 +38,7 @@ class CommandTests(unittest.TestCase):
# be named anything. # be named anything.
\s+\d+ # It has a size. \s+\d+ # It has a size.
[^/]* # Skip the date. [^/]* # Skip the date.
/. # and end with the name of the file. /\. # and end with the name of the file.
''' '''
self.assert_(re.match(pat, getstatus("/."), re.VERBOSE)) self.assert_(re.match(pat, getstatus("/."), re.VERBOSE))