Skip to content

Commit

Permalink
Handle SQL packages
Browse files Browse the repository at this point in the history
  • Loading branch information
macbre committed Oct 14, 2017
1 parent d4593b3 commit 9db5acd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Elecena/Utils/PackageInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ public static function getPackage($desc) {
'TO-?202(-[13])?',
// RD91 package is for wire connections via direct soldering or push-on terminals
'RD-?(91)',
// SQL package
'SQL-?(5|9|11|12|15|17|23)',

// for normalization
'(SOT-?186|SC-?67)',
Expand Down
6 changes: 4 additions & 2 deletions tests/PackageInfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,10 @@ public function getPackageProvider() {
[ 'TDA2030A SUM * Liczba w opakowaniu:50 * Obudowa:PENTAWATT-V', 'PENTAWATT-V' ],

// SQL
# [ 'STR59041 SQL5 układ scalony', 'SQL5' ],
# [ 'STRF 6656 SQL5', 'SQL5' ],
[ 'STR59041 SQL5 układ scalony', 'SQL5' ],
[ 'STRF 6656 SQL-5', 'SQL5' ],
[ 'TA8200AH SQL12 układ scalony', 'SQL12' ],
[ 'TDA8944J SQL17', 'SQL17' ],

// no package data
[ 'Tranzystor: NPN; STO39; bipolarny; 75V; 500mA; 800mW', false ],
Expand Down

0 comments on commit 9db5acd

Please sign in to comment.