Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

194 B
Raw Blame
export const isTagClosed = (tag: string, input: string = '') => {
  const openTag = `<${tag}>`;
  const closeTag = `</${tag}>`;

  return input.includes(openTag) && input.includes(closeTag);
};