Skip to content

Commit

Permalink
fix suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasAtSAP committed Aug 23, 2023
1 parent 0f9e437 commit 5556f73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/etc/create-review.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ Generally, for each spelling mistake there are 2 ways to fix it:
2. The word is incorrectly reported as misspelled → put the word on the **project-words.txt** list, located in the root project directory.
`

const getInvalidUrlText = (link) => {
const getInvalidUrlText = (text, link) => {
const updatedLink = link.includes('localhost') ? 'http' : 'https' + '://' + link.split('/').slice(1).join('/')

return createSuggestionText(updatedLink) + 'Please use wellformed URLs.'
return createSuggestionText(`${text}(${updatedLink})`) + 'Please use wellformed URLs.'
}

const escapeMarkdownlink = (link) => link.replace(/(\[|\(|\]|\))/g, "\\$1")
Expand Down

0 comments on commit 5556f73

Please sign in to comment.