From 15ee001b684b45c04126b51139fe25b30827260c Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Wed, 5 Jan 2022 15:27:59 +0200 Subject: [PATCH] Fixed `Domain.getInfo()` work with different system languages --- src/ts/core/Domain.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/core/Domain.ts b/src/ts/core/Domain.ts index c706198..453b103 100644 --- a/src/ts/core/Domain.ts +++ b/src/ts/core/Domain.ts @@ -43,7 +43,7 @@ export default class Domain else { - const regex = /PING (.*) \(([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\) from ([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}) : [\d]+\([\d]+\) bytes of data/gm.exec(output); + const regex = /PING (.*) \(([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\) .* ([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}) : [\d]+\([\d]+\)/gm.exec(output); if (regex !== null) {