blind_chat / src /lib /utils /trimPrefix.ts
lauro1's picture
test
faca43f
raw
history blame
150 Bytes
export function trimPrefix(input: string, prefix: string) {
if (input.startsWith(prefix)) {
return input.slice(prefix.length);
}
return input;
}