From 1fc49d0d719b3c92826b67e3e4493568e4645b81 Mon Sep 17 00:00:00 2001 From: DudeTux42 Date: Tue, 3 Jun 2025 15:36:06 +0200 Subject: [PATCH] Changed lesson 17 --- data/content.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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}, },