mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2024-11-09 22:08:58 +01:00
🐛 Fix @mention in README.md files
This commit is contained in:
parent
395ae0eff3
commit
e1eb4f73ea
@ -1,6 +1,6 @@
|
||||
# hello-world
|
||||
|
||||
Created by @Divlo at 5 July 2020.
|
||||
Created by [@Divlo](https://github.com/Divlo) at 5 July 2020.
|
||||
|
||||
## Instructions :
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# javascript-hello - hello-world
|
||||
|
||||
Programming language : JavaScript
|
||||
Created by @Divlo at 5 July 2020.
|
||||
Created by [@Divlo](https://github.com/Divlo) at 5 July 2020.
|
||||
|
@ -1,4 +1,4 @@
|
||||
# python-hello - hello-world
|
||||
|
||||
Programming language : Python
|
||||
Created by @Divlo at 5 July 2020.
|
||||
Created by [@Divlo](https://github.com/Divlo) at 5 July 2020.
|
||||
|
@ -1,4 +1,4 @@
|
||||
# typescript-hello - hello-world
|
||||
|
||||
Programming language : TypeScript
|
||||
Created by @Divlo at 5 July 2020.
|
||||
Created by [@Divlo](https://github.com/Divlo) at 5 July 2020.
|
||||
|
@ -74,7 +74,7 @@ import date from 'date-and-time'
|
||||
await replaceInFile({
|
||||
files: [readmePath],
|
||||
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(`
|
||||
|
@ -96,7 +96,7 @@ import copyDirPromise from './utils/copyDirPromise'
|
||||
})
|
||||
|
||||
// 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({
|
||||
files: [readmePath],
|
||||
from: /{{ solutionInfo }}/g,
|
||||
|
Loading…
Reference in New Issue
Block a user