From e85abf4129c88c0f441b47cc8af65e0975887e23 Mon Sep 17 00:00:00 2001 From: libmartinito Date: Thu, 21 Sep 2023 23:31:24 +0800 Subject: [PATCH] Update yaml pipe operator --- internal/test_helpers/course_definition.yml | 54 ++++++++++----------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/internal/test_helpers/course_definition.yml b/internal/test_helpers/course_definition.yml index 714054f..0756c03 100644 --- a/internal/test_helpers/course_definition.yml +++ b/internal/test_helpers/course_definition.yml @@ -3,7 +3,7 @@ name: "Build your own grep" short_name: "grep" release_status: "alpha" -description_md: | +description_md: |- [Regular expressions](https://en.wikipedia.org/wiki/Regular_expression) (Regexes, for short) are patterns used to match character combinations in strings. [`grep`](https://en.wikipedia.org/wiki/Grep) is a CLI tool for searching using Regexes. @@ -11,7 +11,7 @@ description_md: | In this challenge you'll build your own implementation of `grep`. Along the way we'll learn about Regex syntax and how Regexes are evaluated. -short_description_md: | +short_description_md: |- Learn how regular expressions work, including character classes, quantifiers and more completion_percentage: 30 @@ -35,7 +35,7 @@ marketing: author_description: "Senior Software Developer, CenturyLink" author_avatar: "https://codecrafters.io/images/testimonials/patrick_burris.jpeg" link: "https://github.com/Jumballaya" - text: | + text: |- I think the instant feedback right there in the git push is really cool. Didn't even know that was possible! @@ -43,7 +43,7 @@ stages: - slug: "init" name: "Match a literal character" difficulty: very_easy - description_md: | + description_md: |- In this stage, we'll handle the simplest regex possible: a single character. **Example:** `a` should match "apple", but not "dog". @@ -58,7 +58,7 @@ stages: for metacharacters like `+`, `?` etc.). We'll use this flag in all stages. You program must [exit](https://en.wikipedia.org/wiki/Exit_status) with 0 if the character is found, and 1 if not. - marketing_md: | + marketing_md: |- In this stage, we'll handle the simplest regex possible: a single character. **Example:** @@ -68,7 +68,7 @@ stages: - slug: "match_digit" name: "Match digits" difficulty: very_easy - description_md: | + description_md: |- In this stage, we'll implement support for the `\d` [character class](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Character_Classes). @@ -83,7 +83,7 @@ stages: ``` You program must exit with 0 if a digit is found in the string, and 1 if not. - marketing_md: | + marketing_md: |- In this stage, we'll implement support for the `\d` [character class](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Character_Classes). @@ -96,7 +96,7 @@ stages: - slug: "match_alphanumeric" name: "Match alphanumeric characters" difficulty: very_easy - description_md: | + description_md: |- In this stage, we'll implement support for the `\w` [character class](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Character_Classes). @@ -111,7 +111,7 @@ stages: ``` You program must exit with 0 if an alphanumeric character is found in the string, and 1 if not. - marketing_md: | + marketing_md: |- In this stage, we'll implement support for the `\w` [character class](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Character_Classes). @@ -124,7 +124,7 @@ stages: - slug: "positive_character_groups" name: "Positive Character Groups" difficulty: medium - description_md: | + description_md: |- In this stage, we'll add support for [positive character groups](https://docs.microsoft.com/en-us/dotnet/standard/base-types/character-classes-in-regular-expressions#positive-character-group--). Positive character groups match any character that is present within a pair of square brackets. @@ -138,7 +138,7 @@ stages: ``` You program must exit with 0 if an any of the characters are found in the string, and 1 if not. - marketing_md: | + marketing_md: |- In this stage, we'll add support for [positive character groups](https://docs.microsoft.com/en-us/dotnet/standard/base-types/character-classes-in-regular-expressions#positive-character-group--). Positive character groups match any character that is present within a pair of square brackets. @@ -150,7 +150,7 @@ stages: - slug: "negative_character_groups" name: "Negative Character Groups" difficulty: medium - description_md: | + description_md: |- In this stage, we'll add support for [negative character groups](https://docs.microsoft.com/en-us/dotnet/standard/base-types/character-classes-in-regular-expressions#negative-character-group-). Negative character groups match any character that is not present within a pair of square brackets. @@ -164,7 +164,7 @@ stages: ``` You program must exit with 0 if the input contains characters that aren't part of the negative character group, and 1 if not. - marketing_md: | + marketing_md: |- In this stage, we'll add support for [negative character groups](https://docs.microsoft.com/en-us/dotnet/standard/base-types/character-classes-in-regular-expressions#negative-character-group-). Negative character groups match any character that is not present within a pair of square brackets. @@ -176,7 +176,7 @@ stages: - slug: "combining_character_classes" name: "Combining Character Classes" difficulty: medium - description_md: | + description_md: |- In this stage, we'll add support for patterns that combine the character classes we've seen so far. This is where your regex matcher will start to _feel_ useful. @@ -200,7 +200,7 @@ stages: ``` You program must exit with 0 if the pattern matches the input, and 1 if not. - marketing_md: | + marketing_md: |- In this stage, we'll support patterns that combine the character classes we've seen so far. **Examples:** @@ -215,7 +215,7 @@ stages: - slug: "start_of_string_anchor" name: "Start of string anchor" difficulty: medium - description_md: | + description_md: |- In this stage, we'll add support for `^`, the [Start of String or Line anchor](https://docs.microsoft.com/en-us/dotnet/standard/base-types/anchors-in-regular-expressions#start-of-string-or-line-). `^` doesn't match a character, it matches the start of a line. @@ -229,7 +229,7 @@ stages: ``` You program must exit with 0 if the input starts with the given pattern, and 1 if not. - marketing_md: | + marketing_md: |- In this stage, we'll add support for `^`, the [Start of String or Line anchor](https://docs.microsoft.com/en-us/dotnet/standard/base-types/anchors-in-regular-expressions#start-of-string-or-line-). `^` doesn't match a character, it matches the start of a line. @@ -241,7 +241,7 @@ stages: - slug: "end_of_string_anchor" name: "End of string anchor" difficulty: medium - description_md: | + description_md: |- In this stage, we'll add support for `$`, the [End of String or Line anchor](https://docs.microsoft.com/en-us/dotnet/standard/base-types/anchors-in-regular-expressions#start-of-string-or-line-). `$` doesn't match a character, it matches the end of a line. @@ -249,7 +249,7 @@ stages: **Example:** `dog$` should match "dog", but not "dogs". - marketing_md: | + marketing_md: |- In this stage, we'll add support for `$`, the [End of String or Line anchor](https://docs.microsoft.com/en-us/dotnet/standard/base-types/anchors-in-regular-expressions#start-of-string-or-line-). `$` doesn't match a character, it matches the end of a line. @@ -261,13 +261,13 @@ stages: - slug: "one_or_more_quantifier" name: "Match one or more times" difficulty: hard - description_md: | + description_md: |- In this stage, we'll add support for `+`, the [one or more](https://docs.microsoft.com/en-us/dotnet/standard/base-types/quantifiers-in-regular-expressions#match-one-or-more-times-) quantifier. **Example**: - `a+` should match "apple" and "SaaS", but not "dog". - marketing_md: | + marketing_md: |- In this stage, we'll add support for `+`, the [one or more](https://docs.microsoft.com/en-us/dotnet/standard/base-types/quantifiers-in-regular-expressions#match-one-or-more-times-) quantifier. **Example**: @@ -277,13 +277,13 @@ stages: - slug: "zero_or_one_quantifier" name: "Match zero or one times" difficulty: hard - description_md: | + description_md: |- In this stage, we'll add support for `?`, the [zero or one](https://docs.microsoft.com/en-us/dotnet/standard/base-types/quantifiers-in-regular-expressions#match-one-or-more-times-) quantifier (also known as the "optional" quantifier). **Example**: - `dogs?` should match "dogs" and "dog", but not "cat". - marketing_md: | + marketing_md: |- In this stage, we'll add support for `?`, the [zero or one](https://docs.microsoft.com/en-us/dotnet/standard/base-types/quantifiers-in-regular-expressions#match-one-or-more-times-) quantifier (also known as the "optional" quantifier). **Example**: @@ -293,13 +293,13 @@ stages: - slug: "wildcard" name: "Wildcard" difficulty: medium - description_md: | + description_md: |- In this stage, we'll add support for `.`, which matches any character. **Example**: - `d.g` should match "dog", but not "cog". - marketing_md: | + marketing_md: |- In this stage, we'll add support for `.`, which matches any character. **Example**: @@ -310,13 +310,13 @@ stages: - slug: "alternation" name: "Alternation" difficulty: hard - description_md: | + description_md: |- In this stage, we'll add support for the `|` keyword, which allows combining multiple patterns in an either/or fashion. **Example**: - `(cat|dog)` should match "dog" and "cat", but not "apple". - marketing_md: | + marketing_md: |- In this stage, we'll add support for the `|` keyword, which allows combining multiple patterns in an either/or fashion. **Example**: