-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(eyecite): Fix california style #238
base: main
Are you sure you want to change the base?
Conversation
These complex styles were failing with square brackets and years before the citation. Also addressed an issue with extra running too long and simplified the check for parallel citations
Change type hint move is parallel to fullcase citation
The Eyecite Report 👁️Gains and LossesThere were 0 gains and 6 losses. Click here to see details.
Time ChartGenerated Files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is working fine; just a few clean up comments
@@ -314,3 +314,6 @@ def short_cite_re(regex): | |||
\ ? | |||
{PARENTHETICAL_REGEX} | |||
""" | |||
|
|||
# A simple regex to check if year precedes citation | |||
DEFENDNAT_YEAR_REGEX = r"(?P<defendant>.*)\s\((?P<year>\d{4})\)$" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: DEFENDNAT_YEAR_REGEX
should be DEFENDANT_YEAR_REGEX
) | ||
|
||
# d this conclusion is supported by People v. Beach (1983) 147 Cal.App.3d 612 [195 Cal.Rptr. 381] (relocation away from home community as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused, should be removed?
|
||
Returns: None | ||
""" | ||
if self.full_span_start == preceding.full_span_start: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are removing the self.full_span_end == preceding.full_span_end
condition, is that desired?
These complex styles were failing with square brackets and years before the citation. Also addressed
an issue with extra running too long and
simplified the check for parallel citations
Meant to address complex citation patterns #185
This does not address California parentheticals