Skip to content

Commit

Permalink
Adding unset attr rule
Browse files Browse the repository at this point in the history
  • Loading branch information
aireilly committed Sep 13, 2024
1 parent 6c70712 commit 5f2c7c2
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 5f2c7c2

Please sign in to comment.