Skip to content

Commit 9c529ed

Browse files
authored
Clarify anchor regular expressions (#305)
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent aa6178c commit 9c529ed

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

content/2019-09/core/anchor.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
keyword: "$anchor"
33
signature: "String"
4-
value: This keyword must be set to a string starting with a letter and containing letters, digits, hyphens, underscores, colons, or periods
4+
value: "This keyword must be set to a string that starts with a letter and may continue with letters, digits, hyphens, periods, colons, or underscores (matching the regular expression `^[A-Za-z][-A-Za-z0-9.:_]*$`)"
55
summary: "This keyword is used to create plain name fragments that are not tied to any particular structural location for referencing purposes, which are taken into consideration for static referencing."
66
kind: [ "identifier" ]
77
instance: [ "any" ]

content/2020-12/core/anchor.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
keyword: "$anchor"
33
signature: "String"
4-
value: This keyword must be set to a string starting with a letter and containing letters, digits, hyphens, underscores, colons, or periods
4+
value: "This keyword must be set to a string that starts with a letter or underscore and may continue with letters, digits, hyphens, periods, or underscores (matching the regular expression `^[A-Za-z_][-A-Za-z0-9._]*$`)"
55
summary: "This keyword is used to create plain name fragments that are not tied to any particular structural location for referencing purposes, which are taken into consideration for static referencing."
66
kind: [ "identifier" ]
77
instance: [ "any" ]

content/2020-12/core/dynamicAnchor.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
keyword: "$dynamicAnchor"
33
signature: "String"
4-
value: This keyword must be set to a string starting with a letter and containing letters, digits, hyphens, underscores, colons, or periods
4+
value: "This keyword must be set to a string that starts with a letter or underscore and may continue with letters, digits, hyphens, periods, or underscores (matching the regular expression `^[A-Za-z_][-A-Za-z0-9._]*$`)"
55
summary: "This keyword is used to create plain name fragments that are not tied to any particular structural location for referencing purposes, which are taken into consideration for dynamic referencing."
66
kind: [ "identifier" ]
77
instance: [ "any" ]

0 commit comments

Comments
 (0)