sindresorhus / awesome-lint

Linter for Awesome lists
MIT License
600 stars 56 forks source link

Allow apostrophe and interpunct in first word of item description #155

Closed steven2358 closed 1 year ago

steven2358 commented 1 year ago

Fixes #153.

This PR fixes the errors that appear when having apostrophes or interpuncts in the first word of the description. Examples that produced an error but now pass:

- [GPT-3](https://openai.com/api/) - OpenAI's API provides access to GPT-3, which performs a wide variety of natural language tasks, and Codex, which translates natural language to code.
- [DALL·E 2](https://openai.com/dall-e-2/) - DALL·E 2 by OpenAI is a new AI system that can create realistic images and art from a description in natural language.
steven2358 commented 1 year ago

@sindresorhus Ok, I changed the rule so it strips any non-word character: [^\w], equivalent to [a-zA-Z_0-9].

The change is in 2ece4a9

sindresorhus commented 1 year ago

Linting is failing. Always run npm test locally before pushing changes ;)

steven2358 commented 1 year ago

Ok, I ran npm test and fixed my code.