Skip to content

Commit

Permalink
fix(regexes): SHORT CITE ANTECEDENT REGEX
Browse files Browse the repository at this point in the history
Require a a-z character for the start of
antecdent guesses.
  • Loading branch information
flooie committed Feb 7, 2025
1 parent 4fcdd14 commit 0e31544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eyecite/regexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def short_cite_re(regex):
# What case does a short cite refer to? For now, we just capture the previous
# word optionally followed by a comma. Example: Adarand, 515 U.S. at 241.
SHORT_CITE_ANTECEDENT_REGEX = r"""
(?P<antecedent>[\w\-.]+),?
(?P<antecedent>[A-Za-z][\w\-.]+),?
\ # final space
"""

Expand Down

0 comments on commit 0e31544

Please sign in to comment.