File size: 365 Bytes
3b6afc0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const cleanUpPrimaryKeyValue = (value) => {
  // For Bing convoId handling
  return value.replace(/--/g, '|');
};

function replaceSup(text) {
  if (!text.includes('<sup>')) {
    return text;
  }
  const replacedText = text.replace(/<sup>/g, '^').replace(/\s+<\/sup>/g, '^');
  return replacedText;
}

module.exports = {
  cleanUpPrimaryKeyValue,
  replaceSup,
};