Skip to content

[fix] Don't remove newlines during parseText #2620

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

Merged
merged 1 commit into from
Apr 4, 2016
Merged

[fix] Don't remove newlines during parseText #2620

merged 1 commit into from
Apr 4, 2016

Conversation

sirlancelot
Copy link

Since text is being used as the key in cache.get(text) and the
cache is checked before newlines were removed, the cache would always
miss if the input text had any newlines.

I updated tagRe to match tags which contain newlines, and added an
extra test case to ensure newlines outside of tags are preserved

Since `text` is being used as the key in `cache.get(text)` and the
cache is checked *before* newlines were removed, the cache would always
miss if the input `text` had *any* newlines.

I updated `tagRe` to match tags which contain newlines, and added an
extra test case to ensure newlines outside of tags are preserved
@sirlancelot
Copy link
Author

Updated with passing tests

@yyx990803 yyx990803 merged commit 125ea02 into vuejs:dev Apr 4, 2016
@sirlancelot
Copy link
Author

Thanks!

@sirlancelot sirlancelot deleted the patch-1 branch April 4, 2016 21:08
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