Add RegEx class. Refactor PatternMatcher.

This commit is contained in:
Martín Lucas Golini
2024-09-21 22:29:23 -03:00
parent 329eb793a5
commit 04e5cd5fb6
21 changed files with 573 additions and 323 deletions

View File

@@ -392,7 +392,7 @@ void DocSearchController::findAndReplace( SearchState& search, const String& rep
if ( doc.hasSelection() &&
( doc.getSelectedText() == txt ||
( search.type == TextDocument::FindReplaceType::LuaPattern &&
LuaPattern::matches( doc.getAllSelectedText().toUtf8(), txt.toUtf8() ) ) ) ) {
LuaPattern::hasMatches( doc.getAllSelectedText().toUtf8(), txt.toUtf8() ) ) ) ) {
replaceSelection( search, repl );
} else {
findNextText( search );