From 91ebb6967996da5e7907949d1fec7139b335b631 Mon Sep 17 00:00:00 2001 From: sadguitarius Date: Sat, 2 Nov 2024 15:30:14 -0700 Subject: [PATCH] fix regex for port numbers > 9 --- src/components/editor/port.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/editor/port.tsx b/src/components/editor/port.tsx index c3c8775..703c8f0 100644 --- a/src/components/editor/port.tsx +++ b/src/components/editor/port.tsx @@ -29,7 +29,7 @@ const EditorPort: FunctionComponent = memo(function WrappedPort({ id={ port.id } position={ handlePositionByPortDirection[port.direction] } data-c74-type={ port.type } - data-c74-name={ (alias || port.id.replace(/\((capture|playback)_[0-9+]\)/, "")) } + data-c74-name={ (alias || port.id.replace(/\((capture|playback)_[0-9]+\)/, "")) } type={ handleTypeByPortDirection[port.direction] } style={{ top: `${offset}%` }} />