File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,8 +126,18 @@ Object.keys(technologies).forEach((name) => {
126126 } ) ;
127127
128128 // Validate icons
129- if ( technology . icon && ! fs . existsSync ( `${ iconPath } /${ technology . icon } ` ) ) {
130- throw new Error ( `No such icon: ${ technology . icon } (${ name } )` ) ;
129+ if ( ! technology . icon ) {
130+ console . warn ( `Missing icon attribute (${ name } )` ) ;
131+ } else {
132+ if ( ! / \. ( p n g | s v g ) $ / i. test ( technology . icon ) ) {
133+ throw new Error (
134+ `Icon must be a PNG or SVG file: ${ technology . icon } (${ name } )`
135+ ) ;
136+ }
137+
138+ if ( ! fs . existsSync ( `${ iconPath } /${ technology . icon } ` ) ) {
139+ throw new Error ( `No such icon: ${ technology . icon } (${ name } )` ) ;
140+ }
131141 }
132142
133143 // Validate website URLs
Original file line number Diff line number Diff line change 361361 },
362362 "website" : " https://awstats.sourceforge.net"
363363 },
364- "AbhiCMS" : {
365- "cats" : [
366- 1
367- ],
368- "description" : " AbhiCMS is a lesser-known content management system that may not have a significant user base or active development community." ,
369- "implies" : [
370- " PHP" ,
371- " MySQL"
372- ],
373- "meta" : {
374- "generator" : " AbhiCMS\\ s([\\ d\\ .]+)\\ ;version:\\ 1"
375- },
376- "pricing" : [
377- " poa"
378- ],
379- "website" : " https://website999.org"
380- },
381364 "Abicart" : {
382365 "cats" : [
383366 6
Original file line number Diff line number Diff line change 26082608 "scriptSrc" : " /wp-content/plugins/google-language-translator/.+scripts\\ .js(?:\\ ?ver=(\\ d+(?:\\ .\\ d+)+))?\\ ;version:\\ 1" ,
26092609 "website" : " https://gtranslate.io"
26102610 },
2611- "Transmart" : {
2612- "cats" : [
2613- 99
2614- ],
2615- "description" : " Transmart is a shipping company in Turkey." ,
2616- "requiresCategory" : 6 ,
2617- "text" : [
2618- " \\ bTransmart\\ b"
2619- ],
2620- "website" : " https://transmartshipping.com"
2621- },
26222611 "Tray" : {
26232612 "cats" : [
26242613 6
You can’t perform that action at this time.
0 commit comments