Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/philc/vimium
/ validateUrl
Function
validateUrl
background_scripts/commands.js:83–90 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
81
}
82
};
83
const
validateUrl =
function
(str) {
84
try {
85
new
URL(str);
86
return
true;
87
} catch {
88
return
false;
89
}
90
};
91
92
for
(
const
line of configLines) {
93
const
tokens = line.split(/\s+/);
Callers
1
parse
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected