Skip to content

Commit

Permalink
fix(#9341): strip invisible characters
Browse files Browse the repository at this point in the history
  • Loading branch information
aloundoye committed Aug 22, 2024
1 parent 4692ee7 commit 0f36c68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/services/report/smsparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const T_TABLE = {
// TODO ensure everything in here is still needed
const digitReplacer = c => T_TABLE[c];
const standardiseDigits = original => {
return original && original.toString().replace(/[०-९]/g, digitReplacer);
return original && stripInvisibleCharacters(original.toString().replace(/[०-९]/g, digitReplacer));
};

const isMuvukuFormat = (exports.isMuvukuFormat = msg => {
Expand Down

0 comments on commit 0f36c68

Please sign in to comment.