1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-12-08 00:45:29 +01:00

🐛 Fix @mention in README.md files

This commit is contained in:
Divlo 2020-07-05 17:54:46 +02:00
parent 395ae0eff3
commit e1eb4f73ea
6 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# hello-world # hello-world
Created by @Divlo at 5 July 2020. Created by [@Divlo](https://github.com/Divlo) at 5 July 2020.
## Instructions : ## Instructions :

View File

@ -1,4 +1,4 @@
# javascript-hello - hello-world # javascript-hello - hello-world
Programming language : JavaScript Programming language : JavaScript
Created by @Divlo at 5 July 2020. Created by [@Divlo](https://github.com/Divlo) at 5 July 2020.

View File

@ -1,4 +1,4 @@
# python-hello - hello-world # python-hello - hello-world
Programming language : Python Programming language : Python
Created by @Divlo at 5 July 2020. Created by [@Divlo](https://github.com/Divlo) at 5 July 2020.

View File

@ -1,4 +1,4 @@
# typescript-hello - hello-world # typescript-hello - hello-world
Programming language : TypeScript Programming language : TypeScript
Created by @Divlo at 5 July 2020. Created by [@Divlo](https://github.com/Divlo) at 5 July 2020.

View File

@ -74,7 +74,7 @@ import date from 'date-and-time'
await replaceInFile({ await replaceInFile({
files: [readmePath], files: [readmePath],
from: /{{ challengeInfo }}/g, from: /{{ challengeInfo }}/g,
to: `Created${(userGitHub !== '') ? ` by @${userGitHub}` : ''} at ${date.format(new Date(), 'D MMMM Y', true)}.` to: `Created${(userGitHub !== '') ? ` by [@${userGitHub}](https://github.com/${userGitHub})` : ''} at ${date.format(new Date(), 'D MMMM Y', true)}.`
}) })
console.log(` console.log(`

View File

@ -96,7 +96,7 @@ import copyDirPromise from './utils/copyDirPromise'
}) })
// Replace {{ solutionInfo }} in README.md // Replace {{ solutionInfo }} in README.md
const createdByString = `Created${(userGitHub !== '') ? ` by @${userGitHub}` : ''} at ${date.format(new Date(), 'D MMMM Y', true)}.` const createdByString = `Created${(userGitHub !== '') ? ` by [@${userGitHub}](https://github.com/${userGitHub})` : ''} at ${date.format(new Date(), 'D MMMM Y', true)}.`
await replaceInFile({ await replaceInFile({
files: [readmePath], files: [readmePath],
from: /{{ solutionInfo }}/g, from: /{{ solutionInfo }}/g,