mirror of https://github.com/keeweb/keeweb.git
fix #1215: url matching when there's no website field
This commit is contained in:
parent
51cc550502
commit
2c064989c1
|
@ -41,7 +41,8 @@ AutoTypeFilter.prototype.getEntryRank = function(entry) {
|
|||
if (this.titleLower && entry.title) {
|
||||
rank += Ranking.getStringRank(entry.title.toLowerCase(), this.titleLower);
|
||||
}
|
||||
if (this.urlParts && entry.url) {
|
||||
if (this.urlParts) {
|
||||
if (entry.url) {
|
||||
const entryUrlParts = urlPartsRegex.exec(entry.url.toLowerCase());
|
||||
if (entryUrlParts) {
|
||||
const [, scheme, domain, path] = entryUrlParts;
|
||||
|
@ -74,6 +75,12 @@ AutoTypeFilter.prototype.getEntryRank = function(entry) {
|
|||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (entry.searchText.indexOf(this.urlLower) >= 0) {
|
||||
// the url is in some field; include it
|
||||
rank += 5;
|
||||
}
|
||||
}
|
||||
}
|
||||
return rank;
|
||||
};
|
||||
|
|
|
@ -5,6 +5,7 @@ Release notes
|
|||
`-` fixed generator style issues in Firefox
|
||||
`+` option to hide password in the generator
|
||||
`-` fix #1209: copying app information to clipboard
|
||||
`-` fix #1215: url matching when there's no website field
|
||||
|
||||
##### v1.8.2 (2019-04-22)
|
||||
`-` fix #1163: fixed libgconf-2-4 dependency
|
||||
|
|
Loading…
Reference in New Issue