Skip to content

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.

2 participants