Skip to content

Commit

Permalink
removed sanitization function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Amruth-Vamshi committed Sep 6, 2023
1 parent f8bd952 commit f3b9ce5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
15 changes: 9 additions & 6 deletions src/app.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,15 @@ export class AppController {
}

if(type == 'Audio' && ['askingAadhaarNumber','askingOTP','askLastAaadhaarDigits','confirmInput2','confirmInput3','confirmInput4'].indexOf(botFlowService.state.context.currentState) != -1) {
let number = wordToNumber(prompt.inputTextInEnglish)
if(/\d/.test(number)){
isNumber = true
prompt.inputTextInEnglish = number.toUpperCase()
verboseLogger("english text to numbers conversion =",prompt.inputTextInEnglish)
}
// let number = wordToNumber(prompt.inputTextInEnglish)
let number = prompt.inputTextInEnglish.replace(/\s/g, '')
prompt.inputTextInEnglish = number.toUpperCase()
isNumber = true
// if(/\d/.test(number)){
// isNumber = true
// prompt.inputTextInEnglish = number.toUpperCase()
// verboseLogger("english text to numbers conversion =",prompt.inputTextInEnglish)
// }
}
}

Expand Down
5 changes: 4 additions & 1 deletion src/modules/aiTools/ai-tools.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ export class AiToolsService {
{
"language": {
"sourceLanguage": language
}
},
"postProcessors": [
"itn"
],
},
{
"audio":[
Expand Down

0 comments on commit f3b9ce5

Please sign in to comment.