mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2025-05-18 12:02:53 +02:00
🐛 Fix @mention in README.md files
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user