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

Add more conformant unicode handling #8

Merged
merged 1 commit into from
Apr 26, 2016
Merged

Conversation

wooorm
Copy link
Collaborator

@wooorm wooorm commented Apr 26, 2016

This update ensures emoji are correctly stripped (GH-4), and non-Latin
characters are not incorrectly lower-cased (GH-6), and adds a bunch of
(verified) test cases to ensure the future holds less broken builds.

Closes GH-4.
Closes GH-6. (EDIT, commit message refers to 5 :o)
Closes GH-8.

@Flet Does this conform to your coding style?

/cc @revin

This update ensures emoji are correctly stripped (GH-4), and non-Latin
characters are not incorrectly lower-cased (GH-6), and adds a bunch of
(verified) test cases to ensure the future holds less broken builds.

Closes GH-4.
Closes GH-5.
Closes GH-8.
@@ -18,7 +18,7 @@ test('github test cases', function (t) {
var slugger = new GithubSlugger()

testCases.forEach(function (test) {
t.equals(test.slug, slugger.slug(test.text), test.mesg)
t.equals(slugger.slug(test.text), test.slug, test.mesg)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

First argument should be the actual, second expected, this threw me off 😉

Copy link
Owner

Choose a reason for hiding this comment

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

Thanks, I get this confused a lot :)

@revin
Copy link
Contributor

revin commented Apr 26, 2016

I'll leave code style up to @Flet, but this gets a 👍 from me.

@Flet
Copy link
Owner

Flet commented Apr 26, 2016

Looks excellent to me, thanks @wooorm for spending time on this!

@Flet Flet merged commit 1ef870f into master Apr 26, 2016
@wooorm wooorm deleted the better-unicode-support branch April 26, 2016 18:23
@Flet
Copy link
Owner

Flet commented Apr 26, 2016

published as [email protected]

@tadatuta
Copy link
Contributor

👍

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.

4 participants