🐛 Fix @mention in README.md files

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

No files matched your search

+1 -1
View File
@@ -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(`
+1 -1
View File
@@ -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,