Esteves Enzo
init
5916048
raw
history blame
201 Bytes
export const splitStringBracket = (str: string): string[] => {
// Split string by bracket but keep the bracket
const result = str.split(/(\{.*?\})/g)
return result.filter((item) => item !== '')
}