update-badge: fix external link parsing

This commit is contained in:
ndunnett committed 2024-05-22 23:22:33 +00:00
1 parent dd850da3d0
commit 7ee935c6ed
6 files changed
+13 -19

No files matched your search

+2 -8
View File
@@ -92,14 +92,8 @@ function parseGithubRepos (lines) {
}
function otherDomain (line) {
return (
!(
line.indexOf('[') < line.indexOf('/') &&
line.indexOf(']') > line.indexOf('/')
) ||
line.indexOf('gitlab.com') !== -1 ||
line.indexOf('gist.github.com') !== -1
)
const match = line.match(/\[[^\[\]\s]+\]\((?<link>[^\(\)\s]+)\)/)
return match !== null && !match.groups.link.startsWith('https://github.com/')
}
function generateLine (repo) {
+1 -1
View File
@@ -515,7 +515,7 @@ Read [CONTRIBUTING.md](/CONTRIBUTING.md) to learn how to add your own repos.
* [evilmint/AdventOfCode](https://github.com/evilmint/AdventOfCode) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2019--12--08-brightgreen)
* [fguchelaar/AdventOfCode2019](https://github.com/fguchelaar/AdventOfCode2019) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2022--01--05-brightgreen)
* [gernb/AdventOfCode2019](https://github.com/gernb/AdventOfCode2019) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2019--12--25-brightgreen)
* [bradleymackey/AdventOfCode2019](https://github.com/bradleymackey/AdventOfCode2019) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-not%20available-red)
* [bradleymackey/advent.of.code]
* [gereons/AoC2019](https://github.com/gereons/AoC2019) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2023--09--27-brightgreen)
#### TypeScript
+5 -5
View File
@@ -179,7 +179,7 @@ Read [CONTRIBUTING.md](/CONTRIBUTING.md) to learn how to add your own repos.
* [atgreen/advent-of-code-2020](https://github.com/atgreen/advent-of-code-2020) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2020--12--08-brightgreen)
* [m3m0ry/2020-aoc](https://github.com/m3m0ry/2020-aoc) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-not%20available-red)
* [~zge/aoc20](https://github.com/~zge/aoc20) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-not%20available-red)
* [~zge/aoc20](https://git.sr.ht/~zge/aoc20)
* [dwclark/advent-of-code-2020](https://github.com/dwclark/advent-of-code-2020) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2023--11--06-brightgreen)
* [guojing0/aoc-2020](https://github.com/guojing0/aoc-2020) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2021--11--07-brightgreen)
@@ -275,7 +275,7 @@ Read [CONTRIBUTING.md](/CONTRIBUTING.md) to learn how to add your own repos.
#### Hamler
*Solutions to AoC in [Hamler](https://github.com/hamler-lang/hamler)*
*Solutions to AoC in Hamler.*
* [rolandtritsch/hamler-aoc-2020](https://github.com/rolandtritsch/hamler-aoc-2020) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2021--11--06-brightgreen)
@@ -504,7 +504,7 @@ Read [CONTRIBUTING.md](/CONTRIBUTING.md) to learn how to add your own repos.
* [asiron/aoc](https://github.com/asiron/aoc) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2020--12--13-brightgreen)
* [aufbakanleitung/advent-of-code-2020](https://github.com/aufbakanleitung/advent-of-code-2020) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2021--12--21-brightgreen)
* [aureliensimon/avent-of-code-2020](https://github.com/aureliensimon/avent-of-code-2020) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2020--12--15-brightgreen)
* [brianbarbieri](https://github.com/brianbarbieri/adventofcode2020) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2021--03--15-brightgreen)
* [brianbarbieri/adventofcode2020](https://github.com/brianbarbieri/adventofcode2020) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2021--03--15-brightgreen)
* [bsoyka/advent-of-code](https://github.com/bsoyka/advent-of-code) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2023--12--03-brightgreen)
* [campierce/advent-of-code](https://github.com/campierce/advent-of-code) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-not%20available-red)
* [candemircan/adventofcode](https://github.com/candemircan/adventofcode) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-not%20available-red)
@@ -574,7 +574,7 @@ Read [CONTRIBUTING.md](/CONTRIBUTING.md) to learn how to add your own repos.
* [VasileiosGeladaris/AdventOfCode2020](https://github.com/VasileiosGeladaris/AdventOfCode2020) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-not%20available-red)
* [vss2sn/advent_of_code](https://github.com/vss2sn/advent_of_code) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2024--04--13-brightgreen)
* [wysockipiotr/aoc](https://github.com/wysockipiotr/aoc) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2020--12--18-brightgreen)
* [advent-of-code.xavd.id](https://advent-of-code.xavd.id/writeups/2020/) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2023--10--14-brightgreen)
* [advent-of-code.xavd.id](https://advent-of-code.xavd.id/writeups/2020/)
* [yeurch/advent-of-code](https://github.com/yeurch/advent-of-code) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2023--01--02-brightgreen)
* [yspreen/adventofcode](https://github.com/yspreen/adventofcode) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2024--01--19-brightgreen)
* [yufengg/adventofcode](https://github.com/yufengg/adventofcode) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2020--12--21-brightgreen)
@@ -602,7 +602,7 @@ Read [CONTRIBUTING.md](/CONTRIBUTING.md) to learn how to add your own repos.
*Solutions to AoC in Racket.*
* [Bogdanp/aoc2020](https://github.com/Bogdanp/aoc2020) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2020--12--19-brightgreen)
* [haskal/aoc2020](https://github.com/haskal/aoc2020) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-not%20available-red)
* [haskal/aoc2020](https://git.lain.faith/haskal/aoc2020)
* [jackfirth/advent-of-code](https://github.com/jackfirth/advent-of-code) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2022--01--05-brightgreen)
* [lojic/LearningRacket](https://github.com/lojic/LearningRacket) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2023--12--28-brightgreen)
* [mbutterick/aoc-racket](https://github.com/mbutterick/aoc-racket) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2022--07--24-brightgreen)
+2 -2
View File
@@ -495,7 +495,7 @@ Read [CONTRIBUTING.md](/.github/CONTRIBUTING.md) to learn how to add your own re
* [codemicro/adventOfCode](https://github.com/codemicro/adventOfCode) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2023--12--27-brightgreen)
* [dannyhpy/adventofcode](https://github.com/dannyhpy/adventofcode) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2023--12--31-brightgreen)
* [vanyle/AdventOfCode](https://github.com/vanyle/AdventOfCode) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2022--12--29-brightgreen)
* [Archargelod/aoc21-nim](https://github.com/Archargelod/aoc21-nim) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-not%20available-red)
* [Archargelod/aoc21-nim](https://codeberg.org/Archargelod/aoc21-nim)
#### Objective-C
@@ -628,7 +628,7 @@ Read [CONTRIBUTING.md](/.github/CONTRIBUTING.md) to learn how to add your own re
* [zedrdave/advent_of_code](https://github.com/zedrdave/advent_of_code) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2023--12--14-brightgreen)
* [TurtleSmoke/Advent-of-Code](https://github.com/TurtleSmoke/Advent-of-Code) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2023--12--25-brightgreen)
* [vil02/adv_2021](https://github.com/vil02/adv_2021) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2024--05--03-brightgreen)
* [advent-of-code.xavd.id](https://advent-of-code.xavd.id/writeups/2021/) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2023--10--14-brightgreen)
* [advent-of-code.xavd.id](https://advent-of-code.xavd.id/writeups/2021/)
* [AbdeI1/AdventOfCode](https://github.com/AbdeI1/AdventOfCode) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2024--04--20-brightgreen)
#### R
+2 -2
View File
@@ -460,7 +460,7 @@ Read [CONTRIBUTING.md](/.github/CONTRIBUTING.md) to learn how to add your own re
* [MichalMarsalek/Advent-of-code](https://github.com/MichalMarsalek/Advent-of-code) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2022--12--24-brightgreen)
* [bobgeis/aoc2022](https://github.com/bobgeis/aoc2022) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2022--12--22-brightgreen)
* [codemicro/adventOfCode](https://github.com/codemicro/adventOfCode) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2023--12--27-brightgreen)
* [Archargelod/aoc22-nim](https://github.com/Archargelod/aoc22-nim) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-not%20available-red)
* [Archargelod/aoc22-nim](https://codeberg.org/Archargelod/aoc22-nim)
#### Objective-C
@@ -577,7 +577,7 @@ Read [CONTRIBUTING.md](/.github/CONTRIBUTING.md) to learn how to add your own re
* [zu-se/AdventOfCode2022](https://github.com/zu-se/AdventOfCode2022) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2023--01--05-brightgreen)
* [GuglielmoCerri/Advent-of-Code](https://github.com/GuglielmoCerri/Advent-of-Code) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2023--08--09-brightgreen)
* [vil02/adv_2022](https://github.com/vil02/adv_2022) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2024--05--03-brightgreen)
* [advent-of-code.xavd.id](https://advent-of-code.xavd.id/writeups/2022/) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2023--10--14-brightgreen)
* [advent-of-code.xavd.id](https://advent-of-code.xavd.id/writeups/2022/)
* [UrAvgCode/AdventOfCode](https://github.com/UrAvgCode/AdventOfCode) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2024--03--15-brightgreen)
* [AbdeI1/AdventOfCode](https://github.com/AbdeI1/AdventOfCode) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2024--04--20-brightgreen)
* [ndunnett/aoc](https://github.com/ndunnett/aoc) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2024--04--05-brightgreen)
+1 -1
View File
@@ -541,7 +541,7 @@ Read [CONTRIBUTING.md](/.github/CONTRIBUTING.md) to learn how to add your own re
*Solutions to AoC in Nim.*
* [portrik/adventofcode](https://github.com/portrik/adventofcode) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-2023--12--15-brightgreen)
* [Archargelod/aoc23-nim](https://github.com/Archargelod/aoc23-nim) ![Last Commit on GitHub](https://img.shields.io/badge/last%20commit-not%20available-red)
* [Archargelod/aoc23-nim](https://codeberg.org/Archargelod/aoc23-nim)
#### Nushell