kkga / nibar

Simple Übersicht status bar with yabai support.
MIT License
191 stars 33 forks source link

Fixed regular expression causing "undefined is not an object (evaluating 'display.index')" #13

Closed kratoze closed 3 years ago

kratoze commented 3 years ago

I had the same issue as #12 and was able to fix it on my system.

The regular expression used to find the current displayId was leaving behind some characters making displays undefined.

I changed the regex from '/\//g' to '/\D+/g' which has fixed the error for me, and hopefully is a suitable fix.


Closes #12

kkga commented 3 years ago

Thanks!