Skip to content

Commit

Permalink
Plugin: Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aksh-konda committed Aug 18, 2021
1 parent e39a4ae commit 0ffbc63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin-collab-note/src/init/open-collab-note.commad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
const localhostRegEx = /^http:\/\/localhost:([0-9]{4,})\//g;

function isValidURL(url: string) {
url = url.toLocaleLowerCase();
if(!(url.startsWith('http://') || url.startsWith('https://'))) return false;
return validator.isURL(url) || localhostRegEx.test(url);
}
Expand Down

0 comments on commit 0ffbc63

Please sign in to comment.