github errata-ai/vale v3.7.0

latest releases: v3.8.0, v3.7.1
3 months ago

Capture group support

This release introduces support for referencing capture groups in substitution-based rules:

extends: substitution
message: "Use '%s' instead of '%s'."
ignorecase: true
swap:
  "within the (.*)?directory": in the $1 directory

The $1 will be replaced by the contents captured within (.*) in the regular expression. You can reference multiple capture groups by incrementing the index (such as $2 for a second one, etc.).

Action results now populate the message key

The results of your custom actions will now be inserted into the relevant rule's message key, allowing you to create dynamic, script-based suggestions using the CLI.

Changelog

  • fea611f refactor: display action results in message (#851)
  • 7f2c55e feat: add capture group support to substitution (#612)
  • 906c544 refactor: support capture groups in substitution
  • 42a341e fix: handle conatenating nested lists
  • 157b755 chore: fix version in .goreleaser.yml (#868)

Don't miss a new vale release

NewReleases is sending notifications on new releases.