mirror of
https://github.com/qeeqbox/social-analyzer.git
synced 2026-09-11 04:07:45 +02:00
[auto-b] multi-profile search 🔥🔥🔥 - ref 42520c76ca92 & 361bd498e60e
This commit is contained in:
@@ -143,6 +143,16 @@ async function analyze_string(req, all_words) {
|
||||
helper.log_to_file_queue(req.body.uuid, "[Done] String analysis")
|
||||
}
|
||||
|
||||
async function split_comma(req, all_words) {
|
||||
try {
|
||||
req.body.string.split(",").forEach((item) => {
|
||||
if (item.length > 1 && !all_words.unknown.includes(item) && !all_words.maybe.includes(item)) {
|
||||
all_words.unknown.push(item.toLowerCase());
|
||||
}
|
||||
});
|
||||
} catch (err) {}
|
||||
}
|
||||
|
||||
async function split_upper_case(req, all_words) {
|
||||
try {
|
||||
req.body.string.match(/[A-Z][a-z]+/g).forEach((item) => {
|
||||
@@ -221,6 +231,7 @@ module.exports = {
|
||||
find_symbols,
|
||||
find_numbers,
|
||||
convert_numbers,
|
||||
split_comma,
|
||||
split_upper_case,
|
||||
split_alphabet_case,
|
||||
most_common,
|
||||
|
||||
Reference in New Issue
Block a user