Skip to content

Better regex match for mac ping #1

Description

@jenzener

ping on mac delivers results with decimals like '100.0% packet loss'. So i've changed the regex on line 43 from

lossAmt = REmatchNoCase('[0-9]{1,3}%( packet| {0}) loss',pingObj)[1];

to

lossAmt = REmatchNoCase('([0-9]{1,3})*((.|,)\d)%( packet| {0}) loss',pingObj)[1];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions