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

Support 2 digit hex character codes #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JustinTulloss
Copy link

It's legal to have ascii characters represented by a two digit hex code.

A real world example is here: https://github.com/twbs/bootstrap/blob/master/less/glyphicons.less#L35

This supports them in the parseValues function, but the test only half works. Since it's a valid ascii character, it doesn't match when stringified. The stringified value is just the ascii "*".

Advice on how to adapt the test would be great.

This acknowledges that character sequences can also be two hex digits
instead of 4.

The test is still failing as the test is testing against the literal
value, which can be represented by "*"
@mathiasbynens
Copy link

This is tricky, since e.g. trailing spaces must be consumed by the escape sequence as well.

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

2 participants