fix #648: auto-type on subdomains

This commit is contained in:
antelle 2017-11-26 22:49:57 +01:00
parent 62cdb32423
commit 4ec08bf50e
2 changed files with 7 additions and 2 deletions

View File

@ -46,8 +46,12 @@ AutoTypeFilter.prototype.getEntryRank = function(entry) {
if (entryUrlParts) {
const [, scheme, domain, path] = entryUrlParts;
const [, thisScheme, thisDomain, thisPath] = this.urlParts;
if (domain === thisDomain) {
rank += 10;
if (domain === thisDomain || thisDomain.indexOf('.' + domain) > 0) {
if (domain === thisDomain) {
rank += 20;
} else {
rank += 10;
}
if (path === thisPath) {
rank += 10;
} else if (path && thisPath) {

View File

@ -12,6 +12,7 @@ Release notes
`*` password can be hidden as other fields
`*` clear clipboard on exit
`*` don't remove spaces in custom fields
`*` auto-type on subdomains
##### v1.5.6 (2017-08-31)
`-` fix #722: hang on start in desktop