Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actively remove parens from voice instructions #418

Merged
merged 4 commits into from
Jul 25, 2017
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion MapboxNavigation/String.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ extension String {
("&", "&"),
("<", "&lt;"),
("\"", "&quot;"),
("'", "&apos;")
("'", "&apos;"),
("(", ""),
(")", "")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This turns addingXMLEscapes into a misnomer. This method may be used in places where we just want to mark up XML and don’t want to remove parentheses. Instead of repurposing this method, let’s modify the call sites to remove parentheses.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Along the lines of osmlab/osmlint#234, are there any other characters that we should strip out?

])
}
}