(str, sub_string)
| 69 | } |
| 70 | |
| 71 | function remove_word (str, sub_string) { |
| 72 | const part1 = str.substring(0, str.indexOf(sub_string)) |
| 73 | const part2 = str.substring(str.indexOf(sub_string) + sub_string.length, str.length) |
| 74 | const temp = (part1 + part2).replace(/[ \[\]:"\\|,.<>\/?~`!@#$%^&*()_+\-={};"]/gi, '') |
| 75 | return temp |
| 76 | } |
| 77 | |
| 78 | async function analyze_string (req, all_words) { |
| 79 | helper.log_to_file_queue(req.body.uuid, '[Starting] String analysis') |