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

fix(HtmlLexer): fix for unicode chars #6061

Closed
wants to merge 1 commit into from

Conversation

vicb
Copy link
Contributor

@vicb vicb commented Dec 21, 2015

fixes #6036

The root cause of the issue:

"İ".length = 1; // "\u0130"
"İ".toLowerCase().length = 2; // "\u0069\u0307"

We can not assume that the indexes are the same in the input vs the lower case input. This PR fixes this by removing the lower case input.

@vicb vicb added type: bug/fix action: review The PR is still awaiting reviews from at least one requested reviewer comp: core/view/compiler labels Dec 21, 2015
@tbosch
Copy link
Contributor

tbosch commented Dec 21, 2015

Please add test for unicode above 16 bit

@tbosch tbosch added pr_state: LGTM and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Dec 21, 2015
@vicb vicb added the action: merge The PR is ready for merge by the caretaker label Jan 21, 2016
@mary-poppins
Copy link

Merging PR #6061 on behalf of @rkirov to branch presubmit-rkirov-pr-6061.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes type: bug/fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EXCEPTION: Template parse, special char with utf8
5 participants