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

Function extractTime

scripts/ufs_statistic_old.js:803–808  ·  view source on GitHub ↗
(log)

Source from the content-addressed store, hash-verified

801 return /-(\d+)\)/.exec(log)?.[1] || "?";
802}
803function extractTime(log) {
804 return (
805 /\d{1,2}\/\d{1,2}\/\d{4}, \d{1,2}:\d{1,2}:\d{1,2} \w{2}/.exec(log)?.[0] ||
806 ""
807 );
808}
809function extractEventName(log) {
810 return /: (.*?) \(/.exec(log)?.[1] || "";
811}

Callers 1

onDocumentEndFunction · 0.70

Calls 1

execMethod · 0.45

Tested by

no test coverage detected