MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / getRegexForTempdir

Function getRegexForTempdir

lib/utils.ts:97–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95}
96
97function getRegexForTempdir(): RegExp {
98 const tmp = os.tmpdir();
99 return new RegExp(tmp.replaceAll('/', '\\/') + '\\/' + ce_temp_prefix + '[\\w\\d-.]*\\/');
100}
101
102/**
103 * Removes the root dir from the given filepath, so that it will match to the user's filenames used

Callers 1

maskRootdirFunction · 0.85

Calls 1

replaceAllMethod · 0.80

Tested by

no test coverage detected