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.
2 parents e6d2b68 + f03e0ec commit c8fbfefCopy full SHA for c8fbfef
lib/helpers.js
@@ -76,14 +76,13 @@ export const requestGateway = (path, options) =>
76
* @returns {string}
77
*/
78
export const normalizeDomain = (value, isAllowlisting) => {
79
- const normalized = value
+ const init = (isAllowlisting) ? value.replace("@@||", "") : value;
80
+ const normalized = init
81
.replace(/(0\.0\.0\.0|127\.0\.0\.1|::1|::)\s+/, "")
82
.replace("||", "")
83
.replace("^$important", "")
84
.replace("*.", "")
85
.replace("^", "");
86
- if (isAllowlisting) return normalized.replace("@@||", "");
87
-
88
return normalized;
89
};
0 commit comments