You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/website/lib/utils.ts

12 lines
254 B

export const isInternalLink = (link: string): boolean => {
if (
link.startsWith('/') ||
link.startsWith('#') ||
link.startsWith('https://consul.io') ||
link.startsWith('https://www.consul.io')
) {
return true
}
return false
}