Skip to content

Commit

Permalink
* [FIX] Wrong behavior when copying password to clipboard. Thanks to @…
Browse files Browse the repository at this point in the history
…Yotouille for the feedback. Closes #1231

Signed-off-by: Rubén D <nuxsmin@syspass.org>
  • Loading branch information
nuxsmin committed Feb 7, 2019
1 parent 26261c0 commit 57ede8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/js/app-main.js
Expand Up @@ -154,7 +154,7 @@ sysPass.Main = function () {
const $target = $(this.dataset.clipboardTarget);

clipboard
.copy($target.text().replace(/\r?\n|\r/g))
.copy($target.text().replace(/[\r\n]+/g, '') )
.then(
function () {
$(".dialog-text").removeClass("dialog-clip-copy");
Expand Down
2 changes: 1 addition & 1 deletion public/js/app-main.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 57ede8c

Please sign in to comment.