Fixed Domain.getInfo() work with different system languages

This commit is contained in:
Observer KRypt0n_ 2022-01-05 15:27:59 +02:00
parent 4c096eb4b9
commit 15ee001b68
No known key found for this signature in database
GPG key ID: DC5D4EC1303465DA

View file

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