text_lint.operations.assertions.assert_regex.AssertRegex

class text_lint.operations.assertions.assert_regex.AssertRegex(name: str, regex: str, save: str | None = None, splits: AliasYamlSplit | None = None)[source]

Bases: AssertionRegexBase

Assert that the line matches a regular expression.

apply(state: AssertionState) None[source]

Apply the AssertRegex assertion logic.