Skip to content

Commit

Permalink
Merge pull request #884 from aireilly/add-check-unset-attr
Browse files Browse the repository at this point in the history
Adding unset attr rule fix
  • Loading branch information
aireilly authored Sep 13, 2024
2 parents 6c70712 + 5f2c7c2 commit 6596c85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vale/styles/AsciiDoc/UnsetAttributes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ script: |
scope = text.re_replace("(?s) *(\n////.*?////\n)", scope, "")
attr_regex := "^:[\\w-_]+:.*$"
context_mod_docs_regex := "^:context|_mod-docs-content-type:.*$"
context_mod_docs_regex := "^:context|_content-type|_mod-docs-content-type:.*$"
attr_name_regex := ":[\\w-_]+:"
attr_name := ""
unset_attr_pref := ""
Expand Down
2 changes: 1 addition & 1 deletion tengo-rule-scripts/UnsetAttributes.tengo
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ scope += "\n"
scope = text.re_replace("(?s) *(\n////.*?////\n)", scope, "")

attr_regex := "^:[\\w-_]+:.*$"
context_mod_docs_regex := "^:context|_mod-docs-content-type:.*$"
context_mod_docs_regex := "^:context|_content-type|_mod-docs-content-type:.*$"
attr_name_regex := ":[\\w-_]+:"
attr_name := ""
unset_attr_pref := ""
Expand Down

0 comments on commit 6596c85

Please sign in to comment.