syabruk/pync

Doesn't work if the message begins with square bracket ("[")

bbbbbbbbba opened this issue · 4 comments

Notifier.notify('[') fails silently. Notifier.notify('.[') works correctly.

@bbbbbbbbba looks like it's problem with terminal-notifier. I think you should create issues here
https://github.com/julienXX/terminal-notifier/issues

@bbbbbbbbba use escape character to fix this problem.

>>> import pync
>>> pync.notify('\[')

I don't think the package should let the user do the escaping, unless the unescaped bracket has a useful and documented function. Is that the case here?

@bbbbbbbbba it's simple wrapper without extra logic, but you're right about that. Can you make PR for this?