Support auto-complete for from= same as domain=

This commit is contained in:
Raymond Hill 2023-11-03 20:19:19 -04:00
parent 6f8ce65765
commit 4c48148eb2
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -512,7 +512,7 @@ function initHints() {
matchRight[0]
);
}
if ( matchLeft[0].startsWith('domain=') ) {
if ( /^(domain|from)=/.test(matchLeft[0]) ) {
return getOriginHints(cursor, line);
}
};