Spaces:
Runtime error
Runtime error
Niv Sardi
commited on
Commit
•
3e81451
1
Parent(s):
f1b8483
deno: better var names for resolve()
Browse files- deno/puppet.ts +4 -4
deno/puppet.ts
CHANGED
@@ -14,11 +14,11 @@ const CHROME_ARGS = [
|
|
14 |
'--disable-setuid-sandbox'
|
15 |
];
|
16 |
|
17 |
-
async function resolve(
|
18 |
-
if (
|
19 |
-
return
|
20 |
}
|
21 |
-
return await Deno.resolveDns(
|
22 |
}
|
23 |
|
24 |
export default class Runner extends EventEmitter {
|
|
|
14 |
'--disable-setuid-sandbox'
|
15 |
];
|
16 |
|
17 |
+
async function resolve(q: string) {
|
18 |
+
if (q.match(/(\d.?){4}/)) {
|
19 |
+
return q;
|
20 |
}
|
21 |
+
return await Deno.resolveDns(q, "A");
|
22 |
}
|
23 |
|
24 |
export default class Runner extends EventEmitter {
|