fix(clean_url): disable terminal

does not expect stdin/out to have escape code
This commit is contained in:
MDLeom 2025-03-18 11:20:47 +00:00
parent d2dc5fbfed
commit e4002c1110
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 1 additions and 1 deletions

View File

@ -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}`)) {