Skip to content

Commit 71e08d9

Browse files
WangEdwarddehesa
authored andcommitted
fix(duckduckgo-email-protection): address parsing
DuckDuckGo has modified its generated email addresses, and they will now follow the format [email protected] instead of the previous fixed-length format (e.g. [email protected]).
1 parent 2a01cbd commit 71e08d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/communication/duckduckgo-email-protection/generate-unique-email-address.applescript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
on run
1818
set prefix to do shell script "curl -X POST https://quack.duckduckgo.com/api/email/addresses --header 'Authorization: Bearer " & getAuthorizationID() & "'"
1919
if text 3 through 9 of prefix is "address" then
20-
set uniqueAddress to text 13 through 20 of prefix & "@duck.com"
20+
set uniqueAddress to text 13 through -3 of prefix & "@duck.com"
2121
set the clipboard to uniqueAddress
2222
return uniqueAddress & " copied to clipboard!"
2323
else

0 commit comments

Comments
 (0)