Skip to content
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

Fix typos #1986

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix typos #1986

wants to merge 1 commit into from

Conversation

kianmeng
Copy link

@kianmeng kianmeng commented Jan 22, 2023

Found via codespell -S templates -L claus,nd

Copy link
Owner

@jordansissel jordansissel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a quick scan and found one issue the spell checker created. I'll need to do a more thorough read later.

@@ -325,7 +325,7 @@ def fix_name(name)
P_RE_VERSION_ = '[\w\.-]+\.[\w\.-]+[a-zA-Z0-9]'
P_RE_SEPARATOR = '\s[-=/(]?\s?'
P_RE_DATE1 = '\d{4}-\d{2}-\d{2}'
P_RE_DATE2 = '\w+ \d{1,2}(?:st|nd|rd|th)?,\s\d{4}'
P_RE_DATE2 = '\w+ \d{1,2}(?:st|and|rd|th)?,\s\d{4}'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spell checker didn't seem to know that this is a regular expression and that 'nd' is correct here as the pattern intends to match things like '1st' or '23rd' or '42nd'.

Found via `codespell -S templates -L claus,nd`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants