MCPcopy Index your code
hub / github.com/simstudioai/sim / isAlphanumericExtension

Function isAlphanumericExtension

apps/sim/lib/uploads/utils/validation.ts:6–8  ·  view source on GitHub ↗
(ext: string)

Source from the content-addressed store, hash-verified

4 * that arise from non-filename document names (e.g. "Sim.ai <> RVTech").
5 */
6export function isAlphanumericExtension(ext: string): boolean {
7 return /^[a-z0-9]+$/.test(ext)
8}
9
10function extractExtension(fileName: string): string {
11 const lastDot = fileName.lastIndexOf('.')

Callers 4

resolveParserExtensionFunction · 0.90
validateFileTypeFunction · 0.85
validateMediaFileTypeFunction · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected