Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Fixed: Issue 3041 If you remove displayKey for Decrease Font Size shortcut, it will show up as Ctrl++ on Window #3331

Merged
merged 2 commits into from
Apr 16, 2013

Conversation

WebsiteDeveloper
Copy link
Contributor

Fix for #3041 by mimiking a negative lookbehind.

@peterflynn
Copy link
Member

I think you could use regular lookahead: .replace(/-(?!$)/g, "+")

This expression seems like a closer match to what we're trying to accomplish anyway: we don't care about doubled "--"s so much as we care about "-"s that are the last char in the string (i.e. "-"s that are the keystroke rather than the delimiter).

@WebsiteDeveloper
Copy link
Contributor Author

you are right, as the "-" we care about will always be at the end of the string this should work too.

@WebsiteDeveloper
Copy link
Contributor Author

@peterflynn changes pushed.

@RaymondLim
Copy link
Contributor

Looks good. Merging.

RaymondLim added a commit that referenced this pull request Apr 16, 2013
Fixed: Issue 3041 If you remove displayKey for Decrease Font Size shortcut, it will show up as Ctrl++ on Window
@RaymondLim RaymondLim merged commit 2a42e9e into adobe:master Apr 16, 2013
@WebsiteDeveloper WebsiteDeveloper deleted the Issue-3041 branch April 17, 2013 18:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants