Skip to content

Commit

Permalink
fix select not working with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed May 6, 2024
1 parent 2b5c2a9 commit 4b9bdf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ export const su: GetSoupUtilObject = ((soup: AnySoupElement[]) => {
component_type === "source_port" ||
component_type === "schematic_port"
) {
const [component_name, port_selector] = selector.split(/[ \>]/)
const [component_name, port_selector] = selector
.replace(/\./g, "")
.split(/[\s\>]+/)
const source_component = soup.find(
(e) =>
e.type === "source_component" && e.name === component_name
Expand Down

0 comments on commit 4b9bdf3

Please sign in to comment.