Skip to content

Commit

Permalink
Handle ISO218 package
Browse files Browse the repository at this point in the history
  • Loading branch information
macbre committed Oct 16, 2017
1 parent aa58591 commit 66b675f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Elecena/Utils/PackageInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ public static function getPackage($desc) {
'SQL-?(5|9|11|12|15|17|23)',
// https://www.nxp.com/packages/SOT399 / SOT399: TOP-3D - plastic single-ended through-hole package; mountable to heatsink; 1 mounting hole; 3 in-line leads
'TOP-?3D',
// ISO package
'ISO-?218',

// for normalization
'SC-?67',
Expand Down
3 changes: 3 additions & 0 deletions tests/PackageInfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,9 @@ public function getPackageProvider() {
// triacs
[ 'Triak BTA 40/600B Imax = 40A Umax = 600V obudowa: RD91', 'RD91' ],
[ 'BTA40-600B - STMICROELECTRONICS - Triak, 600 V, 40 A, RD-91, 50 mA, 1.5 V, 1 W', 'RD91' ],

// ISO packages
[ 'BU2508D INCH 0410 ISO218', 'ISO218' ],
];
}
}

0 comments on commit 66b675f

Please sign in to comment.