fix(nextcloud-mail-sync): mawk-compatible email regex
This commit is contained in:
parent
6cd63b067d
commit
c7c2e03ea2
@ -33,7 +33,8 @@ list_mail_accounts() {
|
||||
next;
|
||||
}
|
||||
id != "" && /@/ {
|
||||
if (match($0, /[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}/)) {
|
||||
# Keep the regex simple (mawk doesn't support interval expressions like {2,}).
|
||||
if (match($0, /[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+/)) {
|
||||
printf("%s\t%s\n", id, substr($0, RSTART, RLENGTH));
|
||||
id="";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user