fix(regex): break immediately after appending the last character
This commit is contained in:
parent
5facb83ce7
commit
07acc53e07
@ -212,6 +212,7 @@ pub fn regexify_text(text: &String) -> String {
|
|||||||
} else if i == ascii_text.len() - 1 {
|
} else if i == ascii_text.len() - 1 {
|
||||||
regex.push_str(".*");
|
regex.push_str(".*");
|
||||||
regex.push(char);
|
regex.push(char);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if regex_any {
|
if regex_any {
|
||||||
if char == ']' {
|
if char == ']' {
|
||||||
|
Loading…
Reference in New Issue
Block a user