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

Function isCleanText

lib/storage/base.ts:57–60  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

55}
56
57export function isCleanText(text: string) {
58 const lowercased = text.toLowerCase();
59 return !profanities.some(badWord => lowercased.includes(badWord));
60}
61
62function getRawConfigHash(config: any) {
63 return encodeBuffer(utils.getBinaryHash(JSON.stringify(config), FILE_HASH_VERSION));

Callers 2

getSafeHashFunction · 0.85
storage-tests.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected