MCPcopy Create free account
hub / github.com/Superflows-AI/superflows / stripTrailingAndCurly

Function stripTrailingAndCurly

lib/utils.ts:74–82  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

72}
73
74export function stripTrailingAndCurly(str: string) {
75 // Remove trailing slashes
76 str = str.replace(/\/$/, "");
77
78 // Remove anything inside curly brackets
79 str = str.replace(/\/\{[^}]*}/, "");
80
81 return str;
82}
83
84export function isAlphaNumericUnderscore(str: string): boolean {
85 let pattern = /^[a-z0-9_]+$/i;

Callers 2

handlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected