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
| const red = '\033[31m' | |
| const green = '\033[32m' | |
| const magenta = '\033[35m' | |
| const cyan = '\033[36m' | |
| const blue = '\033[34m' | |
| const yellow = '\033[33m' | |
| const white = '\033[0m' | |
| module.exports = { | |
| red(string) { |
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
| module.exports = url => url.match(/^(?:https?:\/\/)?(?:[^@\n]+@)?(?:www\.)?([^:\/\n]+)/im)[1] | |
| // https://github.com/ becomes github.com |
NewerOlder