Skip to content

Commit

Permalink
style: removed console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausMikhaelson committed Nov 9, 2023
1 parent 01af364 commit 1a56f59
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ function renderStyles(matchingString: string) {
function newLinestyles(matchingString: string) {
const pattern = /\\n/g;
const match = matchingString.match(pattern);
console.log(match, 'Match');
if (match?.includes('\\n')) {
console.log('New Line');
const replacedString = matchingString.replace('\\n', '<br/>');
return `<div>${replacedString}</div>`;
} else {
Expand Down

0 comments on commit 1a56f59

Please sign in to comment.