From 51e124b20ec768b11750be0cd73f2c4b01615d54 Mon Sep 17 00:00:00 2001 From: Michael Baghel Date: Sun, 27 Jun 2021 11:06:12 +0400 Subject: [PATCH] fix: copy paste skill into JD --- src/common/helper.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/helper.js b/src/common/helper.js index 5f9f13db..3e452b6f 100644 --- a/src/common/helper.js +++ b/src/common/helper.js @@ -1981,6 +1981,8 @@ function removeTextFormatting (text) { text = _.replace(text, /[,"'?/\\]/g, ' ') // Replace two or more newlines text = _.replace(text, /\n/g, ' ') + // Replace non-breaking space with regular space + text = _.replace(text, /\xA0/g, ' ') // replace all whitespace characters with single space text = _.replace(text, /\s\s+/g, ' ') return text