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

weave arguments cannot contain ) #21

Open
mikaelkaron opened this issue Jan 14, 2015 · 0 comments
Open

weave arguments cannot contain ) #21

mikaelkaron opened this issue Jan 14, 2015 · 0 comments
Labels

Comments

@mikaelkaron
Copy link
Member

At the moment data-weave is parsed using /[\s,]*(((?:\w+!)?([\w\/\.\-]+)(?:#[^(\s]+)?)(?:\((.*?)\))?)/g.

To support multiple widgets with arguments we use non-greedy matching of widget args ((?:\((.*?)\))?)), however this breaks if any widget arg contains the character ).

The fix for this would be to replace the regexp based parsing with a custom parser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant