Skip to content

Fix typos#1986

Open
kianmeng wants to merge 1 commit intojordansissel:mainfrom
myfloss:fix-typos
Open

Fix typos#1986
kianmeng wants to merge 1 commit intojordansissel:mainfrom
myfloss:fix-typos

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.

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.

2 participants