1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2025-10-30 23:07:47 +02:00

Workaround for icons in table (#8158)

* Workaround for icons in table

* Fix pattern of module URL
This commit is contained in:
LitoMore
2022-12-21 19:32:32 +08:00
committed by GitHub
parent ef76014f94
commit 119fdd812b
2 changed files with 23 additions and 23 deletions

View File

@@ -195,7 +195,7 @@ export const getThirdPartyExtensions = async (readmePath) =>
return {
module: {
name: /\[(.+)\]/.exec(module)[1],
url: /\((.+)\)/.exec(module.split('</picture>')[1])[1],
url: /\((.+)\)/.exec(module.split('<picture>')[0])[1],
},
author: {
name: /\[(.+)\]/.exec(author)[1],