Skip to content

Commit

Permalink
🐛 fix isUrl test
Browse files Browse the repository at this point in the history
  • Loading branch information
ebullient committed Oct 7, 2024
1 parent 5df0acc commit bacd32a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export function isEmpty(value: any) {
);
}

export function isUrl(path: string) {
return path.match(/^.*?:\/\//);
export function isUrl(path: string): boolean {
return /^.*?:\/\//.test(path);
}

export function isIcon(path: string) {
Expand Down

0 comments on commit bacd32a

Please sign in to comment.