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

preserve dots when copying to clipboard #1631

Merged
merged 1 commit into from Jun 27, 2017

Conversation

benesch
Copy link
Contributor

@benesch benesch commented Jun 27, 2017

Looks like the copy-to-clipboard sanitizing regex was sourced from a StackOverflow question titled "Regex for removing leading and trailing carriage returns and line feeds from a sentence" (https://stackoverflow.com/a/2550845/1122351), but the question text sneakily also asked for the solution to combine this with "removing periods from within the string."

We want to keep these dots when copying to the clipboard, so remove the part of the regex that strips these dots.

Looks like the copy-to-clipboard sanitizing regex was sourced from a
StackOverflow question titled "Regex for removing leading and trailing
carriage returns and line feeds from a sentence"
(https://stackoverflow.com/a/2550845/1122351), but the question text
sneakily also asked to combine this with "removing periods from within
the string."

We want to keep these dots when copying to the clipboard, so remove the
part of the regex that strips these dots.
@benesch benesch requested a review from jseldess June 27, 2017 04:14
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@benesch
Copy link
Contributor Author

benesch commented Jun 27, 2017

(@jseldess: heads up, I haven't tested this yet.)

@benesch benesch mentioned this pull request Jun 27, 2017
@jseldess
Copy link
Contributor

Thanks, @benesch. Will test in the morning.

@deronjohnson, heads up that @benesch may have resolved this already.

@jseldess
Copy link
Contributor

Just tested. Works like a charm. Thanks again, @benesch!

@jseldess jseldess merged commit 1624928 into cockroachdb:master Jun 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants