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

Report regexp to split formatters. Fixed #432 #562

Merged

Conversation

jccazeaux
Copy link
Contributor

Report of #432 fix in ES6 branch.

@@ -60,7 +60,7 @@ export default class View {
}

buildBinding(binding, node, type, declaration) {
let pipes = declaration.split('|').map(pipe => {
let pipes = declaration.match(/((?:'[^']*')*(?:(?:[^\|']+(?:'[^']*')*[^\|']*)+|[^\|]+))|^$/g).map(pipe => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace with .map(pipe => pipe.trim())

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thanks

benadamstyles added a commit that referenced this pull request Feb 4, 2016
…_ES6

Report regexp to split formatters. Fixed #432
@benadamstyles benadamstyles merged commit 8322d18 into mikeric:es6 Feb 4, 2016
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.

3 participants