You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(url.pathname.length<=1)returnfalse;// make sure we have some path
176
+
177
+
returnisHostValid(url.host);
178
+
};
179
+
180
+
constisHostValid=(input?: string): boolean=>{
181
+
if(!input)returnfalse;
182
+
183
+
consthostSegments=input.split(".");
184
+
if(hostSegments.length<2||hostSegments.some((chunk)=>chunk===""))returnfalse;// check that there are no consecutive periods as well as no leading or trailing ones
0 commit comments