Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/utils/filterPinLabels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function filterPinLabels(
validLabels.push(label)
} else {
invalidPinLabelsMessages.push(
`Invalid pin label: ${pin} = '${label}' - excluding from component. Please use a valid pin label.`,
`Invalid pin label: ${pin} = '${label}' - excluding from component. Pin labels can only contain letters, numbers and underscores.`,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ test("chip with invalid pin should be skipped", async () => {

expect(source_property_ignored_warning).toHaveLength(1)
expect(source_property_ignored_warning[0].message).toContain(
"Invalid pin label: pin3 = '//' - excluding from component. Please use a valid pin label.",
"Invalid pin label: pin3 = '//' - excluding from component. Pin labels can only contain letters, numbers and underscores.",
)

expect(circuit).toMatchSchematicSnapshot(import.meta.path)
Expand Down
2 changes: 1 addition & 1 deletion tests/repros/repro93-chip-pinlabel-leading-space.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ test("chip pinLabels should not allow leading or trailing spaces", async () => {

expect(schematic_errors).toHaveLength(1)
expect(schematic_errors[0].message).toContain(
"Invalid pin label: pin1 = 'A1 ' - excluding from component. Please use a valid pin label.",
"Invalid pin label: pin1 = 'A1 ' - excluding from component. Pin labels can only contain letters, numbers and underscores.",
)
})