Skip to content

Commit 0ef924b

Browse files
author
Sébastien Geiser
committed
Slowly better
1 parent 37fa3e1 commit 0ef924b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

RegexDialog/RegExToolDialog.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2154,7 +2154,7 @@ private void ExportToVisualStudio_Click(object sender, RoutedEventArgs e)
21542154
File.WriteAllText(replaceFile, ReplaceScriptForMatch);
21552155
programCode = programCode
21562156
.Replace("\r\n private readonly static string replacement = \"$replacement$\";", string.Empty)
2157-
.Replace("//code", string.Empty);
2157+
.Replace("//code", Res.CSharpReplaceCallingCode);
21582158
}
21592159
// Modify entry code for standard replacement.
21602160
else

RegexDialog/Resources/CSharpReplaceCallingCode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
string replace = regex.Replace(input, match =>
1010
{
1111
index++;
12-
container.Replace(match, index, fileName, index, 0);
12+
return container.Replace(match, index, fileName, index, 0);
1313
});
1414

1515
replace = container.After(replace, fileName);

0 commit comments

Comments
 (0)