Skip to content

Commit 1abf24e

Browse files
committed
Merge pull request gregmalcolm#83 from Walkman/patch-2
Makes regex example self explanatory.
2 parents 287be68 + 7894c4f commit 1abf24e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python2/koans/about_regex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ def test_matching_literal_text_not_case_sensitivity(self):
6363
string = "Hello, my name is Felix or felix and this koan " + \
6464
"is based on Ben's book: Regular Expressions in 10 minutes."
6565

66-
self.assertEqual(re.findall("felix", string, 20), __)
67-
self.assertEqual(re.findall("felix", string, 10), __)
66+
self.assertEqual(re.findall("felix", string), __)
67+
self.assertEqual(re.findall("felix", string, re.IGNORECASE), __)
6868

6969
def test_matching_any_character(self):
7070
"""

0 commit comments

Comments
 (0)