Started client-side work on schedule searchin'
This commit is contained in:
parent
c081d9c4ff
commit
3ec770ba28
7 changed files with 196 additions and 24 deletions
|
|
@ -43,6 +43,20 @@ class canopyUtils{
|
|||
dateWithinRange(min, max, input){
|
||||
return min.getTime() < input.getTime() && max.getTime() > input.getTime();
|
||||
}
|
||||
|
||||
isURL(url){
|
||||
//attempt to makem a url
|
||||
try{
|
||||
new URL(url);
|
||||
//if it dont work
|
||||
}catch{
|
||||
//FUCK
|
||||
return false;
|
||||
}
|
||||
|
||||
//if it do, return true XP
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue