MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / extractTime

Function extractTime

scripts/ufs_statistic.js:605–610  ·  view source on GitHub ↗
(log)

Source from the content-addressed store, hash-verified

603 return /-(\d+)\)/.exec(log)?.[1] || "?";
604}
605function extractTime(log) {
606 return (
607 /\d{1,2}\/\d{1,2}\/\d{4}, \d{1,2}:\d{1,2}:\d{1,2} \w{2}/.exec(log)?.[0] ||
608 ""
609 );
610}
611function extractEventName(log) {
612 return /: (.*?) \(/.exec(log)?.[1] || "";
613}

Callers 1

onDocumentEndFunction · 0.70

Calls 1

execMethod · 0.45

Tested by

no test coverage detected