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

Replace function does not replace all occurences #7

Merged
merged 1 commit into from
Aug 1, 2013

Conversation

altryne
Copy link
Contributor

@altryne altryne commented Aug 1, 2013

Replace function did not replace all classes, script failed on clicking dom items with more then 2 classes.
This adds replace with a regex replace with a global flag to replace all occurrences, as well as trimming it so cases lik class=" btn" won't break the code

Replace function did not replace all classes, script failed on clicking dom items with more then 2 classes
ebrehault added a commit that referenced this pull request Aug 1, 2013
Replace function does not replace all occurences
@ebrehault ebrehault merged commit 52e5a95 into ebrehault:master Aug 1, 2013
@altryne altryne deleted the patch-1 branch August 1, 2013 15:08
@altryne
Copy link
Contributor Author

altryne commented Aug 1, 2013

hey @ebrehault thanx for merging, when are you going to update the chrome extension? :)

@ebrehault
Copy link
Owner

I just did :)
(you are lucky, I am about to leave for vacations)

thanks for contributing

@altryne
Copy link
Contributor Author

altryne commented Aug 1, 2013

Sure thing! Love this! Tired of writing them manually
Have fun on vacation!

Sent from Mailbox for iPhone

On Thu, Aug 1, 2013 at 6:43 PM, Eric BREHAULT notifications@github.com
wrote:

I just did :)
(you are lucky, I am about to leave for vacations)

thanks for contributing

Reply to this email directly or view it on GitHub:
#7 (comment)

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.

None yet

2 participants