Skip to content

Commit

Permalink
Merge pull request rohennes#63 from aireilly/fixes
Browse files Browse the repository at this point in the history
final edge case for ClosedAttributeBlocks
  • Loading branch information
aireilly authored Apr 28, 2023
2 parents cd882d4 + c4431c0 commit 943fbce
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .vale/fixtures/AsciiDoc/ClosedAttributeBlocks/testvalid.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,17 @@ $ oc adm must-gather
[must-gather ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-2bd8x created
[must-gather ] OUT pod for plug-in image quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:125f183d13601537ff15b3239df95d47f0a604da2847b561151fedd699f5e3a5 created
----

//vale-fixture
.Example API response
[source,json]
----
[
{
"id": "ca11ab76-86f9-428c-8d3a-666c24e34d32",
"endpointUri": "http://localhost:9089/api/ocloudNotifications/v1/dummy",
"uriLocation": "http://localhost:8089/api/ocloudNotifications/v1/subscriptions/ca11ab76-86f9-428c-8d3a-666c24e34d32",
"resource": "/cluster/node/openshift-worker-0.openshift.example.com/redfish/event"
}
]
----
2 changes: 1 addition & 1 deletion .vale/styles/AsciiDoc/ClosedAttributeBlocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ scope: raw
level: error
message: "Attribute block is not closed."
raw:
- '(?<!.)(\[[^\]]+?)\n'
- '(?<!.)(\[[^\]\n]+?)\n'

0 comments on commit 943fbce

Please sign in to comment.