Closed clarkf closed 10 years ago
If i had a test suite I'd have no trouble accepting this PR as is (looks obvious enough), but as it stands I want to settle down and poke at a bit before merging. Thank you for taking the time to read and notice! :)
@cameron this isn't really dangerous. the first regex is pretty straightforward, and the replacement is even more so :)
This fixes issue #30. Looks good to me, will be excited when its merged.
Thanks, @clarkf. I would adore some help with the tests. LMK if you start working on them so I don't do the same :)
FYI, Squirt got mentioned on Business Insider :)
@cameron I'd love to try it. what do I do now? re-drag the bookmarklet from Squirt.IO ?
Clear your cache :) The change was to a script that gets injected, not the bookmarklet itself.
@cameron tried with this article http://techcrunch.com/2014/03/11/wikipedia-co-founder-jimmy-wales-accidentally-starts-a-bitcoin-donation-campaign-for-wikipedia/ , hereby I confirmed the fix works. Nice job there @clarkf and @cameron !!
@cameron I'll definitely give it a shot! I'll open a pull shortly to drop commits.
Hello there!
Very neat stuff! I noticed that squirt wasn't separating words out very intelligently, and wanted to lend a hand.
This pull does two things:
textContent
works, adjacent words that are wrapped in tags (e.g.<b>This,</b> and this
) will get returned as single words (['This,and', 'this']
). This pull adds an extra space after all punctuation, which often helps with words that run-together.Thanks!
/cc #10, #17