mirror of
https://github.com/Axorax/awesome-free-apps.git
synced 2025-12-29 16:14:53 +00:00
Fix: restore www. in broken links
This commit is contained in:
2
index.js
2
index.js
@@ -50,7 +50,7 @@ function format(file = "README.md") {
|
||||
const updatedData = data
|
||||
.split('\n')
|
||||
.map(line => {
|
||||
// line = line.replace(/https:\/\/www\./g, 'https://'); // removes www.
|
||||
// line = line.replace(/https:\/\/www\./g, 'https://'); // removes www. (DON'T USE! Some links break!)
|
||||
line = line.replace(/\((https?:\/\/.*?)\/\)/g, "($1)"); // removes trailing /
|
||||
// if (line.startsWith('- [')) {
|
||||
// const parts = line.split(' - ');
|
||||
|
||||
Reference in New Issue
Block a user