Skip to content

Commit d589be6

Browse files
authored
Update markdown stlying to YAML for better syntax highlighting (#1944)
1 parent ce8791b commit d589be6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/kb/rules/pattern-parse-error.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This substitution works because `metavariable-pattern` tries to match the patter
4040

4141
The following rule would elicit the "[ERROR] Pattern parse error in rule" response:
4242

43-
```code
43+
```yaml
4444
patterns:
4545
- pattern-inside: app.$FUNC(...)
4646
- pattern-not-regex: .(middleware.csrf.validate).
@@ -56,14 +56,14 @@ patterns:
5656
5757
To fix the error, replace
5858
59-
```code
59+
```yaml
6060
- metavariable-pattern:
6161
metavariable: $FUNC
6262
```
6363
6464
with
6565
66-
```code
66+
```yaml
6767
- metavariable-regex:
6868
metavariable: $FUNC
6969
regex: ^(post|put|delete|patch)$

0 commit comments

Comments
 (0)