Skip to content

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