mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
v2.18.6
This commit is contained in:
parent
063ed7d844
commit
dc241ded1b
12 changed files with 18 additions and 16 deletions
4
vendors/openpgp-5/dist/openpgp.js
vendored
4
vendors/openpgp-5/dist/openpgp.js
vendored
|
|
@ -1883,12 +1883,12 @@ var openpgp = (function (exports) {
|
|||
},
|
||||
|
||||
/**
|
||||
* Remove trailing spaces and tabs from each line
|
||||
* Remove trailing spaces, carriage returns and tabs from each line
|
||||
*/
|
||||
removeTrailingSpaces(text) {
|
||||
return text.split('\n').map(line => {
|
||||
let i = line.length - 1;
|
||||
for (; i >= 0 && (line[i] === ' ' || line[i] === '\t'); i--);
|
||||
for (; i >= 0 && (line[i] === ' ' || line[i] === '\t' || line[i] === '\r'); i--);
|
||||
return line.substr(0, i + 1);
|
||||
}).join('\n');
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue