twostraws / ControlRoom

A macOS app to control the Xcode Simulator.
MIT License
5.79k stars 304 forks source link

Push Notification Text Editor Loves Smart Quotes #168

Open jacobvanorder opened 1 year ago

jacobvanorder commented 1 year ago

When I try to edit the text here:

image of text editor on App tab

It replaces the quotes (") with smart quotes () because that's what Steve Jobs would have wanted. Unfortunately, that is not valid JSON.

Anyway, the editor is here: https://github.com/twostraws/ControlRoom/blob/main/ControlRoom/Simulator%20UI/ControlScreens/AppView/AppView.swift#L125-L132

I'd add a modifier myself but it looks like there isn't one, at least not according to Stack Overflow.

twostraws commented 1 year ago

I wonder if we should do a simple string replace before triggering the push?

noises1990 commented 11 months ago

Hi everyone, any news on this? Or a work-around for disabling smart quotes? Thank you!

Harry-KNIGHT commented 10 months ago

Got the same issue today, I'm thinking about string replace occurrence but do not have tested yet.