Skip to content

Commit

Permalink
fix regex for port numbers > 9
Browse files Browse the repository at this point in the history
  • Loading branch information
sadguitarius committed Nov 2, 2024
1 parent 1545015 commit 91ebb69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/editor/port.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const EditorPort: FunctionComponent<PortProps> = 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}%` }}
/>
Expand Down

0 comments on commit 91ebb69

Please sign in to comment.