mirror of
https://github.com/Mibew/simple-icons.git
synced 2024-11-15 09:54:11 +03:00
Fix getThirdPartyExtensions
of SDK when extracting from README shipped with npm package (#8564)
This commit is contained in:
parent
7b3f27136f
commit
eb90e446e4
6
sdk.mjs
6
sdk.mjs
@ -196,9 +196,9 @@ export const getThirdPartyExtensions = async (
|
||||
let [module, author] = line.split(' | ');
|
||||
|
||||
// README shipped with package has not Github theme image links
|
||||
module = module.includes('<picture>')
|
||||
? module.split('<picture>')[0]
|
||||
: module.split('<img src="')[1].split(' ').slice(5).join(' ');
|
||||
module = module.split(
|
||||
module.includes('<picture>') ? '<picture>' : '<img src="',
|
||||
)[0];
|
||||
return {
|
||||
module: {
|
||||
name: /\[(.+)\]/.exec(module)[1],
|
||||
|
Loading…
Reference in New Issue
Block a user