mirror of
https://github.com/go-gitea/gitea.git
synced 2026-06-28 17:11:05 +00:00
6 lines
229 B
TypeScript
6 lines
229 B
TypeScript
export function cutString(s: string, sep: string): [string, string, boolean] {
|
|
const index = s.indexOf(sep);
|
|
if (index === -1) return [s, '', false];
|
|
return [s.substring(0, index), s.substring(index + sep.length), true];
|
|
}
|