Last active
February 5, 2019 05:47
-
-
Save junibrosas/2a020afc09c257d0b8925e75da0e07f2 to your computer and use it in GitHub Desktop.
Gibberish Snippets
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
// match regex yes | |
rl.question('Are you sure you want to download reference pictures? (y(es))', async (answer) => { | |
if (answer.match(/^y(es)?$/i)) { | |
await downloadNewRefPics(newRefPicsList); | |
} | |
rl.close(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment