Created
November 7, 2019 21:41
-
-
Save wctej89/2fddf4ccd34d04e47230ae1107388b90 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| urls = ['angry', 'sad', 'meh', 'like', 'superlike'] | |
| i = -1 | |
| foo = -> | |
| i++ | |
| urls[i] | |
| a = '--reactreaction-- dsfsfd --reactreaction-- dsfsf --reactreaction-- sdfsdfdsf --reactreaction-- sdfsdfsf --reactreaction--' | |
| a.replace /--reactreaction--/g, foo # => 'angry dsfsfd sad dsfsf meh sdfsdfdsf like sdfsdfsf superlike' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment