Skip to content

Commit 1a141de

Browse files
authored
fix: support sot23-5 alias in footprint string parser (#572)
* fix: support sot23-5 alias in footprint string parser * up * remove tests
1 parent 91e308e commit 1a141de

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/footprinter.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ export type Footprinter = {
269269
const normalizeDefinition = (def: string): string => {
270270
return def
271271
.trim()
272+
.replace(/^sot23-(\d+)(?=_|$)/i, "sot23_$1")
272273
.replace(/^sot-223-(\d+)(?=_|$)/i, "sot223_$1")
273274
.replace(/^to-220f-(\d+)(?=_|$)/i, "to220f_$1")
274275
.replace(/^jst_(ph|sh|zh)_(\d+)(?=_|$)/i, "jst$2_$1")
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)