Skip to content

Commit 51e124b

Browse files
committed
fix: copy paste skill into JD
1 parent 051608b commit 51e124b

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)