Skip to content

Commit

Permalink
Fix formatting issues in formatMarkdown.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangsvit committed Jan 31, 2024
1 parent 23243bb commit 2269939
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/helper/markdown/format_markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ let formatMarkdown = function () {
return `No Company`;
} else {
company = company.replace(/[^@a-zA-Z0-9\s]/g, '');
company = company.replace(/[\n\r]/g, '');
return breakWords(company, 4);
}
}
let getName = function (name) {
if(name === 'undefined value'){
return `No Name`;
} else {
name = name.replace(/[\n\r]/g, '');
return name
}
}
Expand All @@ -60,6 +62,7 @@ let formatMarkdown = function () {
}
}
placesString = placesString.replace('<3', '');
placesString = placesString.replace(/[\n\r]/g, '');
return placesString
}
let getMinimumFollowersRequirement = function (readCacheResponseModel) {
Expand Down

0 comments on commit 2269939

Please sign in to comment.