Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
DakMak
/
chat-uigl
like
0
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
chat-uigl
/
src
/
lib
/
utils
/
trimPrefix.ts
DakMak
Duplicate from coyotte508/chat-ui
ece0c29
over 1 year ago
raw
Copy download link
history
blame
contribute
delete
Safe
150 Bytes
export
function
trimPrefix
(
input:
string
, prefix:
string
) {
if
(input.
startsWith
(prefix)) {
return
input.
slice
(prefix.
length
);
}
return
input;
}