Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
artemp84 opened this issue Mar 28, 2022 · 1 comment
Open

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

artemp84 opened this issue Mar 28, 2022 · 1 comment

Comments

@artemp84
Copy link

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)%%,?(.*)').

@Bootjewolf
Copy link

This is fixed by #181 it just needs to be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants