Skip to content

Commit

Permalink
fix(docs): current broken links (#353)
Browse files Browse the repository at this point in the history
Fix wildcard and regex broken links in docs
  • Loading branch information
datYori authored Feb 5, 2024
1 parent 591d714 commit c69f03e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class RegexReplaceEntry extends EntryExtension {
override def docs: EntryDoc = EntryDoc(
summary = "Replaces matches of a regular expression pattern by a new string.",
description = Some(
"For more information about regex patterns see the [Regex patterns documentation](/docs/snapi/regex-templates)."
"For more information about regex patterns see the [Regex patterns documentation](/snapi/regex-templates)."
),
examples =
List(ExampleDoc("""Regex.Replace("Heelloo John", "[aeiou]+", "_")""", result = Some(""" "H_ll__ J_hn" """))),
Expand Down Expand Up @@ -90,7 +90,7 @@ class RegexMatchesEntry extends EntryExtension {
override def docs: EntryDoc = EntryDoc(
summary = "Checks if a string matches a regular expression pattern.",
description = Some(
"For more information about regex patterns see the [Regex patterns documentation](/docs/snapi/regex-templates)."
"For more information about regex patterns see the [Regex patterns documentation](/snapi/regex-templates)."
),
examples = List(
ExampleDoc("""Regex.Matches("1234", "\\d+")""", result = Some("true")),
Expand Down Expand Up @@ -128,7 +128,7 @@ class RegexFirstMatchInEntry extends EntryExtension {
override def docs: EntryDoc = EntryDoc(
summary = "Finds the first match of a regular expression in a string.",
description = Some(
"For more information about regex patterns see the [Regex patterns documentation](/docs/snapi/regex-templates)."
"For more information about regex patterns see the [Regex patterns documentation](/snapi/regex-templates)."
),
examples = List(
ExampleDoc("""Regex.FirstMatch("1234", "\\d+")""", result = Some(""""1234"""")),
Expand Down Expand Up @@ -172,7 +172,7 @@ class RegexGroupsEntry extends EntryExtension {
override def docs: EntryDoc = EntryDoc(
summary = "Finds the list of capturing groups of a regular expression in a string.",
description = Some(
"For more information about regex patterns see the [Regex patterns documentation](/docs/snapi/regex-templates)."
"For more information about regex patterns see the [Regex patterns documentation](/snapi/regex-templates)."
),
examples = List(
ExampleDoc("""Regex.Groups("23-06-1975", "(\\d+)-(\\d+)-(\\d+)")""", result = Some("""["23", "06", "1975"]""")),
Expand Down

0 comments on commit c69f03e

Please sign in to comment.