Created
December 31, 2018 09:06
-
-
Save paulstelzer/acbb6831fbef003afd4c8a567fc2c0de to your computer and use it in GitHub Desktop.
Regex test
This file contains 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
// OLD | |
myRecipe.title = trimString($('.recipe__intro .page-title').text()); | |
// NEW | |
myRecipe.title = this.getText('.recipe__intro .page-title'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Search for:
trimString\(\$(.+?)\.text\(\)\)
Replace with:
this.getText$1