MCPcopy
hub / github.com/qeeqbox/social-analyzer / remove_word

Function remove_word

modules/string-analysis.js:71–76  ·  view source on GitHub ↗
(str, sub_string)

Source from the content-addressed store, hash-verified

69}
70
71function 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
78async function analyze_string (req, all_words) {
79 helper.log_to_file_queue(req.body.uuid, '[Starting] String analysis')

Callers 1

analyze_stringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected