Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cdbc131

Browse files
committed
Patch #551911: Escape . properly.
1 parent 294bbf3 commit cdbc131

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_getstatus(self):
3838
# be named anything.
3939
\s+\d+ # It has a size.
4040
[^/]* # Skip the date.
41-
/. # and end with the name of the file.
41+
/\. # and end with the name of the file.
4242
'''
4343

4444
self.assert_(re.match(pat, getstatus("/."), re.VERBOSE))

0 commit comments

Comments
 (0)