MCPcopy
hub / github.com/wavetermdev/waveterm / cleanMimeType

Function cleanMimeType

emain/emain-ipc.ts:63–69  ·  view source on GitHub ↗
(mimeType: string)

Source from the content-addressed store, hash-verified

61}
62
63function cleanMimeType(mimeType: string): string {
64 if (mimeType == null) {
65 return null;
66 }
67 const parts = mimeType.split(";");
68 return parts[0].trim();
69}
70
71function getFileNameFromUrl(url: string): string {
72 try {

Callers 1

getUrlInSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected