AdGuardVPNForiOS icon indicating copy to clipboard operation
AdGuardVPNForiOS copied to clipboard

Prevent Smart Punctuation from altering DNS server addresses

Open ghost opened this issue 1 year ago • 3 comments

Issue Details

When using a DNS server address with double hyphens, iOS’s Smart Punctuation feature turns the double hyphens into an emdash, which alters the server address, resulting in no connection.

Currently the only workaround is to copy and paste a server address in. Manually typing it won’t work.

image

image

Proposed solution

Programmatically prevent iOS Smart Punctuation from altering text when entering in DNS servers.

Something like the following in Swift may be a solution:

if #available(iOS 11.0, *) {
    textView.smartDashesType = .no
    textView.smartQuotesType = .no
    textView.smartInsertDeleteType = .no
} else {
    // Fallback on earlier versions
}

Alternative solution

No response

ghost avatar Apr 19 '24 04:04 ghost

Hello! Thank you for your suggestion. We've forwarded the details to our development team for review. They will explore potential solutions.

In the meantime, as a temporary workaround, you can insert a space between hyphens and then remove it to prevent them from automatically converting to em dashes.

PavelParkhomenko avatar Apr 23 '24 10:04 PavelParkhomenko

Hi @PavelParkhomenko, unfortunately the em dash doesn't get cancelled with a space, it puts a space between the two dashes. If the space is removed, Smart Punctuation takes over again. The only workaround at the moment is to copy and paste it in.

ghost avatar Apr 23 '24 10:04 ghost

Natthaphon99.com

Natthaphonkanchaisri avatar May 05 '24 09:05 Natthaphonkanchaisri