MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / stripPipeSuffix

Function stripPipeSuffix

packages/ui/src/utils/genericHelper.js:372–378  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

370 const handlesEqual = (a, b) => {
371 if (a === b) return true
372 const stripPipeSuffix = (s) => {
373 if (!s) return s
374 const lastDash = s.lastIndexOf('-')
375 if (lastDash === -1) return s
376 const suffix = s.substring(lastDash + 1)
377 return suffix.includes('|') ? s.substring(0, lastDash) : s
378 }
379 return stripPipeSuffix(a) === stripPipeSuffix(b)
380 }
381

Callers 1

handlesEqualFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected