smorks / keepassnatmsg

KeePass plugin to expose credentials securely to a browser using Native Messaging
GNU General Public License v3.0
271 stars 28 forks source link

Questions about URL matching mechanism #122

Closed huajideshutiao closed 3 weeks ago

huajideshutiao commented 3 weeks ago

Is it possible to match aaa.net and aaa.com through aaa? How should I implement this behavior? Should I fill in aaa or regular expression in the URL or custom string?

smorks commented 3 weeks ago

i think the easiest way to do this would be to turn on the "Search string fields for URL" option on in the Advanced Options screen, and to just create two Advanced string entries for aaa.net & aaa.com, called something like URL1 and URL2.

It appears it also supports regex expressions by turning on that option, then naming it something with URL AND Regex in the name, then it will treat the value as a regular expression.

Hope that helps!

huajideshutiao commented 3 weeks ago

i think the easiest way to do this would be to turn on the "Search string fields for URL" option on in the Advanced Options screen, and to just create two Advanced string entries for aaa.net & aaa.com, called something like URL1 and URL2.

It appears it also supports regex expressions by turning on that option, then naming it something with URL AND Regex in the name, then it will treat the value as a regular expression.

Hope that helps!

Thanks for the reply! Although there are some unexpected circumstances, but achieved the original goal, thank you for your help!