We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db47629 commit 0acc9bfCopy full SHA for 0acc9bf
src/utils/index.ts
@@ -2,7 +2,6 @@ import { CheerioAPI } from 'cheerio'
2
import consola from 'consola'
3
import { readUrl } from 'dl-vampire'
4
import fse from 'fs-extra'
5
-import is from 'is_js'
6
import less from 'less'
7
import path from 'path'
8
import sass from 'sass'
@@ -30,7 +29,7 @@ export function cleanUp($: CheerioAPI) {
30
29
})
31
}
32
33
-export const isUrl = (u: string) => is.url(u) as boolean
+export const isUrl = (url: string) => /^https?:\/\//.test(url)
34
35
export const read = (file: string) => fse.readFileSync(file, 'utf-8')
36
0 commit comments