MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / isScriptFile

Function isScriptFile

src/background/sync/base.js:77–79  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

75 return `vm@2-${uri}`;
76}
77export function isScriptFile(name) {
78 return /^vm(?:@\d+)?-/.test(name);
79}
80export function getURI(name) {
81 const i = name.indexOf('-');
82 const [, version] = name.slice(0, i).split('@');

Callers 5

getSyncDataFunction · 0.90
listFunction · 0.90
listFunction · 0.90
readdirFunction · 0.90
parseListXmlFunction · 0.90

Calls 1

testMethod · 0.45

Tested by

no test coverage detected