From b16d3d07622bf0017e628242ef1b6efc36aeb5f8 Mon Sep 17 00:00:00 2001 From: spx Date: Sat, 30 Jul 2011 22:11:31 +0000 Subject: [PATCH] RegExpSubstitute: Enabled "\0" for replacing to the string matched by the complete expression. --- Library/Measure.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Measure.cpp b/Library/Measure.cpp index 228e145d..9ae049bb 100644 --- a/Library/Measure.cpp +++ b/Library/Measure.cpp @@ -290,7 +290,7 @@ const WCHAR* CMeasure::CheckSubstitute(const WCHAR* buffer) if (rc > 1) { - for (int j = rc - 1 ; j > 0 ; j--) + for (int j = rc - 1 ; j >= 0 ; j--) { size_t new_start = ovector[2*j]; size_t in_length = ovector[2*j+1] - ovector[2*j];