OSDN Git Service

Fix not working correctly when unchecking Regular expression and checking Match whole...
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sun, 19 Mar 2023 01:19:42 +0000 (10:19 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sun, 19 Mar 2023 01:19:42 +0000 (10:19 +0900)
Src/SubstitutionList.cpp

index 99ef2e9..4f79b5b 100644 (file)
@@ -54,7 +54,7 @@ void SubstitutionList::Add(
                rePattern.push_back(c);
        }
        if (matchWholeWordOnly)
-               rePattern = "\b" + rePattern + "\b";
+               rePattern = "\\b" + rePattern + "\\b";
        m_list.emplace_back(rePattern, replacement, regexpCompileOptions);
 }