6 lines
124 B
JavaScript
6 lines
124 B
JavaScript
function isExternalUrl(url) {
|
|
return new RegExp('^((https?:)?//)', 'i').test(url);
|
|
}
|
|
|
|
module.exports = { isExternalUrl };
|