Commit cdbc131f authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #551911: Escape . properly.

parent 294bbf3a
...@@ -38,7 +38,7 @@ class CommandTests(unittest.TestCase): ...@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment