Skip to content

batteryarc-widget - string.match doesn't match #347

@artemp84

Description

@artemp84

On my system (arch) acpi output is "Battery 0: Not charging, 98%"
It doesn't match string.match(s, '.+: (%a+), (%d?%d?%d)%%,?(.*)') in function update_widget.
Works after I updated pattern to string.match(s, '.+: (%a*%s?%a+), (%d?%d?%d)%%,?(.*)').

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