Skip to content

Commit 75ae0fc

Browse files
fix: proper documentation for strict padding
Co-authored-by: Tyler J Russell <xtylerjrx@gmail.com> Signed-off-by: drainpixie <121581793+drainpixie@users.noreply.github.com>
1 parent b386c2a commit 75ae0fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proselint/registry/checks/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Padding(str, Enum):
3636
NONWORDS_IN_TEXT = r"\B{}\B"
3737
"""Match any position that is not a word boundary around the pattern."""
3838
STRICT_WORDS_IN_TEXT = r"(?<![A-Za-z'-]){}(?![A-Za-z'-])"
39-
"""WORDS_IN_TEXT but disallows matches with hyphens and apostrophes"""
39+
"""Lookaround-based `WORDS_IN_TEXT`, prohibiting hyphens and apostrophes."""
4040

4141
def to_offset_from(self, offset: tuple[int, int]) -> tuple[int, int]:
4242
"""Calculate new offset values based on the applied padding."""

0 commit comments

Comments
 (0)