-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Replace 'kebab-case' to 'hyphen-case' #2646
Conversation
Since 'kebab-case' may be perceived as derogatory by some members of Arabic or Asian cultures, it's better to use a culture-agnostic term like 'hyphen-case', which in addition is more self-explanatory than the potentially offensive term 'kebab-case', which makes no sense without knowing the origin of the term.
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.
Glad to see that you managed to submit the PR (and yes, VSCode is very handy indeed).
Seems Unix vs. Windows line endings in changelog have tricked you a little bit (do not worry about it, it doesn't matter, I just comment it to have it searchable in the future).
The PR is great, glad to have contributions like this! 🎉
- Add check to verify that enableClasses has been initialized. [`39fc8fa`](https://github.com/Modernizr/Modernizr/commit/39fc8faa3eefab70b5c096f9c29629cdb0bbc402) | ||
- Add check to verify that enableClasses has been initialized. | ||
[`39fc8fa`](https://github.com/Modernizr/Modernizr/commit/39fc8faa3eefab70b5c096f9c29629cdb0bbc402) |
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.
Line endings are a mess...
- https://github.com/Modernizr/Modernizr/issues/423 [`22c6779`](https://github.com/Modernizr/Modernizr/commit/22c6779d3b450c2681ba24501be5b2b2ca42e4d2) | ||
- https://github.com/Modernizr/Modernizr/issues/423 | ||
[`22c6779`](https://github.com/Modernizr/Modernizr/commit/22c6779d3b450c2681ba24501be5b2b2ca42e4d2) |
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.
Same as previous one
- If the test added via addTest is NOT a function or Boolean Modernizr dies. [`1c2feb5`](https://github.com/Modernizr/Modernizr/commit/1c2feb5722fb0beee574bd0ea7054c883341c45a) | ||
- If the test added via addTest is NOT a function or Boolean Modernizr dies. | ||
[`1c2feb5`](https://github.com/Modernizr/Modernizr/commit/1c2feb5722fb0beee574bd0ea7054c883341c45a) |
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.
RT
- `/^[23]g$/` is the new `/^(?:2g|3g)$/`. [`3e27e8a`](https://github.com/Modernizr/Modernizr/commit/3e27e8ad8a1e8a91d0487a46d5bd9f55c091d214) | ||
- `/^[23]g$/` is the new `/^(?:2g|3g)$/`. | ||
[`3e27e8a`](https://github.com/Modernizr/Modernizr/commit/3e27e8ad8a1e8a91d0487a46d5bd9f55c091d214) |
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.
Same
- Do NOT cast `test` to a Boolean. Truthy/falsy values are okay and casting will break some of the built in tests that use a Boolean *object* with added properties (the audio/video tests do this). [`f8ccf69`](https://github.com/Modernizr/Modernizr/commit/f8ccf69369e9fe560e300a2096c6bb5415187913) | ||
- Do NOT cast `test` to a Boolean. Truthy/falsy values are okay and casting will break some of the built in tests that use a Boolean *object* with added properties (the audio/video tests do this). | ||
[`f8ccf69`](https://github.com/Modernizr/Modernizr/commit/f8ccf69369e9fe560e300a2096c6bb5415187913) |
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.
Lo mismo
Markel, thanks a lot for your help :) About line endings, I thought I had my local git configured as to not mess with line endings, using whatever the repository had, and if none, forcing Unix ones. I have checked the local copy I cloned and in fact Sorry for the inconvenience. |
Thx for the PR @DervishD |
Since 'kebab-case' may be perceived as derogatory by some members of Arabic or Asian cultures, it's better to use a culture-agnostic term like 'hyphen-case', which in addition is more self-explanatory than the potentially offensive term 'kebab-case', which makes no sense without knowing the origin of the term.
My pleasure, @rejas :) |
Since 'kebab-case' may be perceived as derogatory by some members of
Arabic or Asian cultures, it's better to use a culture-agnostic term
like 'hyphen-case', which in addition is more self-explanatory than the
potentially offensive term 'kebab-case', which makes no sense without
knowing the origin of the term.