fix #1671: new lines removal issue in notes

This commit is contained in:
antelle 2020-12-31 17:24:59 +01:00
parent 7c2b7a09f8
commit 143b1a73f7
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
4 changed files with 14 additions and 11 deletions

View File

@ -339,7 +339,7 @@ class EntryModel extends Model {
if (val && !val.isProtected) {
// https://github.com/keeweb/keeweb/issues/910
// eslint-disable-next-line no-control-regex
val = val.replace(/[\x00-\x1F\uFFF0-\uFFFF]/g, '');
val = val.replace(/[\x00-\x09\x0B-\x0C\x0E-\x1F\uFFF0-\uFFFF]/g, '');
}
return val;
}

18
package-lock.json generated
View File

@ -4887,9 +4887,9 @@
}
},
"date-and-time": {
"version": "0.14.1",
"resolved": "https://registry.npmjs.org/date-and-time/-/date-and-time-0.14.1.tgz",
"integrity": "sha512-M4RggEH5OF2ZuCOxgOU67R6Z9ohjKbxGvAQz48vj53wLmL0bAgumkBvycR32f30pK+Og9pIR+RFDyChbaE4oLA=="
"version": "0.14.2",
"resolved": "https://registry.npmjs.org/date-and-time/-/date-and-time-0.14.2.tgz",
"integrity": "sha512-EFTCh9zRSEpGPmJaexg7HTuzZHh6cnJj1ui7IGCFNXzd2QdpsNh05Db5TF3xzJm30YN+A8/6xHSuRcQqoc3kFA=="
},
"date-time": {
"version": "1.1.0",
@ -9157,9 +9157,9 @@
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
},
"ini": {
"version": "1.3.5",
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz",
"integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw=="
"version": "1.3.8",
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="
},
"internal-ip": {
"version": "4.3.0",
@ -9783,9 +9783,9 @@
}
},
"kdbxweb": {
"version": "1.14.0",
"resolved": "https://registry.npmjs.org/kdbxweb/-/kdbxweb-1.14.0.tgz",
"integrity": "sha512-Hg+PBdur4Mp/pmKuj1vZfYB4uCONdNlJI8H65VO5beK/EexRwuJQBSxW8mIbHHrLP701Q2KDlc7GLeSrs3dRMA==",
"version": "1.14.1",
"resolved": "https://registry.npmjs.org/kdbxweb/-/kdbxweb-1.14.1.tgz",
"integrity": "sha512-eu1R3zubQnxaHl6ZHkSIt8+ob/EZocUDdvTuTno1uoc+0JREMRlcWSHm8E+ficREBN9EMaXmwofJOjwXjKKzPQ==",
"requires": {
"pako": "github:keeweb/pako#653c0b00d8941c89d09ed4546d2179001ec44efc",
"text-encoding": "github:keeweb/text-encoding#4dfb7cb0954c222852092f8b06ae4f6b4f60bfbb",

View File

@ -67,7 +67,7 @@
"jquery": "3.5.1",
"json-loader": "^0.5.7",
"jsqrcode": "github:antelle/jsqrcode#0.1.3",
"kdbxweb": "^1.14.0",
"kdbxweb": "^1.14.1",
"load-grunt-tasks": "5.1.0",
"lodash": "^4.17.20",
"marked": "^1.2.7",

View File

@ -1,5 +1,8 @@
Release notes
-------------
##### v1.16.7 (2020-12-31)
`-` fix #1671: new lines removal issue in notes
##### v1.16.6 (2020-12-30)
`-` fix #1668: opening files with bad characters
`*` upgraded a vulnerable dependency