diff --git a/data/content.go b/data/content.go index ff59864..6182700 100644 --- a/data/content.go +++ b/data/content.go @@ -426,16 +426,16 @@ func GetLessons() []models.Lesson { "- Writing cleaner patterns\n" + "- Quick character class shortcuts\n\n" + "Test text:\n" + - "✓ a1 (letter followed by number)\n" + - "✓ x9 (letter followed by number)\n" + - "✗ 1a (number followed by letter)\n" + + "✓' 1' (whitespace followed by number)\n" + + "✓' _' (whitespace followed by underscore)\n" + + "✗' a' (whitespace followed by letter)\n" + "✗ ab (no number)\n" + "✗ 12 (no letter)", - Task: "Write a pattern that matches a word character followed by a digit", + Task: "Write a pattern that matches a space followed by a word character", TestCases: []models.TestCase{ - {Text: "a1", Expected: true}, - {Text: "x9", Expected: true}, - {Text: "1a", Expected: false}, + {Text: " 1", Expected: true}, + {Text: " _", Expected: true}, + {Text: " a", Expected: true}, {Text: "ab", Expected: false}, {Text: "12", Expected: false}, },