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

Replace 'kebab-case' to 'hyphen-case' #2646

Merged
merged 1 commit into from Apr 10, 2021
Merged

Replace 'kebab-case' to 'hyphen-case' #2646

merged 1 commit into from Apr 10, 2021

Conversation

DervishD
Copy link
Contributor

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.

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.
Copy link
Contributor

@Markel Markel left a 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! 🎉

Comment on lines -1613 to +1614
- 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)
Copy link
Contributor

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...

Comment on lines -1975 to +1977
- 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)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as previous one

Comment on lines -1995 to +1998
- 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)
Copy link
Contributor

Choose a reason for hiding this comment

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

RT

Comment on lines -2014 to +2018
- `/^[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)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same

Comment on lines -2017 to +2022
- 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)
Copy link
Contributor

Choose a reason for hiding this comment

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

Lo mismo

@DervishD
Copy link
Contributor Author

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 Changelog.md has UNIX line endings, so maybe something got broken when I committed or pushed, I don't know.

Sorry for the inconvenience.

@rejas rejas merged commit 6d56d81 into Modernizr:master Apr 10, 2021
@rejas
Copy link
Member

rejas commented Apr 10, 2021

Thx for the PR @DervishD

rejas pushed a commit that referenced this pull request Apr 10, 2021
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.
@DervishD
Copy link
Contributor Author

My pleasure, @rejas :)

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

3 participants