mirror of
https://github.com/zhigang1992/favicongrabber.com.git
synced 2026-01-12 17:22:32 +08:00
Update jsdoc
This commit is contained in:
@@ -18,8 +18,10 @@ const rcut = (str, of) => {
|
||||
|
||||
/**
|
||||
* Extract a domain name from a URL.
|
||||
*
|
||||
* @param {string} url
|
||||
* @returns {string}
|
||||
*/
|
||||
|
||||
module.exports = (url) => {
|
||||
// removes whitespace from both ends of a URL
|
||||
let next = url.trim();
|
||||
|
||||
Reference in New Issue
Block a user