Skip to content

Commit c9936f4

Browse files
authored
Merge pull request #386 from mbaghel/dev
fix: copy paste skill into JD - bug #358
2 parents 051608b + 51e124b commit c9936f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/common/helper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,6 +1981,8 @@ function removeTextFormatting (text) {
19811981
text = _.replace(text, /[,"'?/\\]/g, ' ')
19821982
// Replace two or more newlines
19831983
text = _.replace(text, /\n/g, ' ')
1984+
// Replace non-breaking space with regular space
1985+
text = _.replace(text, /\xA0/g, ' ')
19841986
// replace all whitespace characters with single space
19851987
text = _.replace(text, /\s\s+/g, ' ')
19861988
return text

0 commit comments

Comments
 (0)