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

only first occurences of $FILE replaced #4

Open
ReneGa opened this issue Feb 20, 2014 · 0 comments
Open

only first occurences of $FILE replaced #4

ReneGa opened this issue Feb 20, 2014 · 0 comments

Comments

@ReneGa
Copy link

ReneGa commented Feb 20, 2014

due to the behavior of String.replace(), only the first occurrence of $FILE is replaced. The builder should replace all occurrences of $FILE.
Maybe use regex inside replace instead? Like this: http://stackoverflow.com/questions/2116558/fastest-method-to-replace-all-instances-of-a-character-in-a-string

Best

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

No branches or pull requests

1 participant