1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Merge branch 'Seanstoppable-fixfullycharged'

This commit is contained in:
Chris Cummer 2019-08-21 15:52:52 -07:00
commit c6caffcdf8

View File

@ -95,7 +95,7 @@ func (battery *Battery) formatRemaining(data string) string {
r, _ := regexp.Compile(TimeRegExp) r, _ := regexp.Compile(TimeRegExp)
result := r.FindString(data) result := r.FindString(data)
if result == "" { if result == "" || result == "0:00" {
result = "∞" result = "∞"
} }