octalmage / active-window

Get active window title in Node.js.
160 stars 51 forks source link

Rebuild titles containing commas, on macOS #27

Closed Bradshaw closed 3 years ago

Bradshaw commented 6 years ago

Sometimes window titles contain commas, which leads to window.title incorrectly cutting off the end of the title e.g: If the window's full title is Lions and tigers and bears, oh my!, window.title is set to Lions and tigers and bears

This pull request fixes this behaviour on macOS I suggest making a similar change for Windows and Linux if they also present the same behaviour, I don't have those OSes handy to understand the output on those platforms