Skip to content

Commit 2b6780c

Browse files
Update grammar
Signed-off-by: George Robinson <george.robinson@grafana.com>
1 parent 44e807c commit 2b6780c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,9 @@ A UTF-8 matcher consists of three tokens:
482482
- One of `=`, `!=`, `=~`, or `!~`. `=` means equals, `!=` means not equal, `=~` means matches the regular expression and `!~` means doesn't match the regular expression.
483483
- An unquoted literal or a double-quoted string for the regular expression or label value.
484484

485-
Unquoted literals can contain all UTF-8 characters other than the reserved characters. These are whitespace, curly braces, exclamation marks, equals, tilda, commas, backslashes, double quotes, single quotes and backticks. For example, `foo`, `[a-zA-Z]+`, and `Προμηθεύς` (Prometheus in Ancient Greek) are all examples of valid unquoted literals. However, `foo!` is not a valid literal as `!` is a reserved character.
485+
Unquoted literals can contain all UTF-8 characters other than the reserved characters. These are whitespace, and all characters in ``` { } ! = ~ , \ " ' ` ```. For example, `foo`, `[a-zA-Z]+`, and `Προμηθεύς` (Prometheus in Greek) are all examples of valid unquoted literals. However, `foo!` is not a valid literal as `!` is a reserved character.
486486

487-
Double-quoted strings can contain all UTF-8 characters. Unlike unquoted literals, there are no reserved characters. You can even use UTF-8 code points. For example, `"foo!"`, `"bar,baz"` and `"baz qux\"` are valid double-quoted strings.
487+
Double-quoted strings can contain all UTF-8 characters. Unlike unquoted literals, there are no reserved characters. You can even use UTF-8 code points. For example, `"foo!"`, `"bar,baz"`, `"\"baz qux\""` and `"\xf0\x9f\x99\x82"` are valid double-quoted strings.
488488

489489
#### Classic matchers
490490

0 commit comments

Comments
 (0)