modified: mikey_nodes.py

This commit is contained in:
bash-j
2023-08-01 20:14:46 +09:30
parent 352581cf0d
commit e0fb53e0b0
+1 -1
View File
@@ -192,7 +192,7 @@ def find_and_replace_wildcards(prompt, offset_seed):
for j in range(num_lines):
line_number = (start_idx + j) % num_lines
line = file_lines[line_number].strip()
if any(re.search(r'\b' + re.escape(word) + r'\b', line) for word in words_to_find):
if any(re.search(r'\b' + re.escape(word) + r'\b', line, re.IGNORECASE) for word in words_to_find):
selected_lines.append(line)
break
else: