We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1869d54 commit 21fc562Copy full SHA for 21fc562
src/lib/isMailtoURI.js
@@ -16,13 +16,8 @@ function parseMailtoQueryString(queryString) {
16
for (const q of queryParams) {
17
const [key, value] = q.split('=');
18
19
- if (!key) {
20
- // eslint-disable-next-line no-continue
21
- continue;
22
- }
23
-
24
// checked for invalid and duplicated query params
25
- if (!allowedParams.has(key)) {
+ if (key && !allowedParams.has(key)) {
26
isParseFailed = true;
27
break;
28
}
@@ -31,7 +26,9 @@ function parseMailtoQueryString(queryString) {
31
query[key] = value;
32
33
34
- allowedParams.delete(key);
29
+ if (key) {
30
+ allowedParams.delete(key);
+ }
35
36
37
return isParseFailed ? false : query;
0 commit comments