fix(clean_url): disable terminal
does not expect stdin/out to have escape code
This commit is contained in:
parent
d2dc5fbfed
commit
e4002c1110
|
@ -1,6 +1,6 @@
|
|||
import { createInterface } from 'node:readline'
|
||||
|
||||
for await (const line of createInterface({ input: process.stdin })) {
|
||||
for await (const line of createInterface({ input: process.stdin, terminal: false })) {
|
||||
// parse hostname from url
|
||||
if (process.argv[2] === 'hostname') {
|
||||
if (URL.canParse(`http://${line}`)) {
|
||||
|
|
Loading…
Reference in New Issue