deckarep / gosx-notifier

gosx-notifier is a Go framework for sending desktop notifications to OSX 10.8 or higher
MIT License
588 stars 51 forks source link

Alert does not display if the first character of the message is a quote. #8

Open ghost opened 10 years ago

ghost commented 10 years ago

This fails:

note := gosxnotifier.NewNotification("\"Welcome\" was updated.")
....
err := note.Push();
....
GusGA commented 7 years ago

You can use strconv.QuoteToASCII link.

message := strconv.QuoteToASCII("\"Welcome\" was updated.")
note := gosxnotifier.NewNotification(message)
....
err := note.Push();
....