Created
August 5, 2022 12:38
-
-
Save r-plus/89dbe3e383ea5b653b13f621c0cf9df2 to your computer and use it in GitHub Desktop.
BetterTouchTool javascript transform for github iOS Simulator screenshot width 300
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
async (str) => { | |
const re = /https?:\/\/[-_.!~*\'a-zA-Z0-9;\/?:\@&=+\$,%#]+/g; | |
const m = str.match(re); | |
return `<img src=${m[0]} width=300>`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment