@@ -567,7 +567,7 @@ List<RegexResult> GetMatchesFor(string text, string fileName = "", int selection
567
567
568
568
MatchesResultLabel . Content = $ "{ i } matches [Index,Length] + { countAllCaptures - i } empties matches found in { ff } /{ ft } files";
569
569
}
570
- else if ( Config . Instance . TextSourceOn == RegexTextSource . CSharpScript )
570
+ else if ( Config . Instance . TextSourceOn == RegexTextSource . CSharpScript )
571
571
{
572
572
dynamic sourceScript = CSharpTextSourceScript ;
573
573
@@ -857,7 +857,7 @@ private void ExtractMatchesButton_Click(object sender, RoutedEventArgs e)
857
857
858
858
void Extract ( string text , string fileName = "" )
859
859
{
860
- List < Match > matches = regex . Matches ( ( string ) script ? . Before ( text , fileName ) ?? text )
860
+ List < Match > matches = regex . Matches ( ( string ) script ? . Before ( text , fileName ) ?? text )
861
861
. Cast < Match > ( )
862
862
. ToList ( ) ;
863
863
@@ -894,7 +894,7 @@ void Extract(string text, string fileName = "")
894
894
fileNames = GetFiles ( ) ;
895
895
fileNames . ForEach ( fileName => Extract ( File . ReadAllText ( fileName ) , fileName ) ) ;
896
896
}
897
- else if ( Config . Instance . TextSourceOn == RegexTextSource . CSharpScript )
897
+ else if ( Config . Instance . TextSourceOn == RegexTextSource . CSharpScript )
898
898
{
899
899
dynamic sourceScript = CSharpTextSourceScript ;
900
900
Extract ( sourceScript . Get ( ) . ToString ( ) , "script" ) ;
@@ -2020,7 +2020,7 @@ private void TestCSharpTextSourceButton_Click(object sender, RoutedEventArgs e)
2020
2020
SetText ( result ) ;
2021
2021
}
2022
2022
}
2023
- catch ( Exception exception )
2023
+ catch ( Exception exception )
2024
2024
{
2025
2025
MessageBox . Show ( $ "{ exception } ") ;
2026
2026
}
@@ -2043,7 +2043,7 @@ private void ExportToVisualStudio_Click(object sender, RoutedEventArgs e)
2043
2043
{
2044
2044
string projectName = inputDialog . Input . Replace ( " " , string . Empty ) ;
2045
2045
2046
- if ( string . IsNullOrWhiteSpace ( projectName ) )
2046
+ if ( string . IsNullOrWhiteSpace ( projectName ) )
2047
2047
{
2048
2048
MessageBox . Show ( "The project name can not be empty or only whitespaces" , "Exportation Aborted" , MessageBoxButton . OK , MessageBoxImage . Information ) ;
2049
2049
return ;
@@ -2060,9 +2060,9 @@ private void ExportToVisualStudio_Click(object sender, RoutedEventArgs e)
2060
2060
2061
2061
// Write solution file
2062
2062
if ( ! File . Exists ( projectFile )
2063
- || MessageBox . Show ( $ "The solution file \" { solutionFile } \" already exists.\r \n Do you want to override it ?",
2064
- "Solution file override" ,
2065
- MessageBoxButton . YesNo ,
2063
+ || MessageBox . Show ( $ "The solution file \" { solutionFile } \" already exists.\r \n Do you want to override it ?",
2064
+ "Solution file override" ,
2065
+ MessageBoxButton . YesNo ,
2066
2066
MessageBoxImage . Question ) == MessageBoxResult . Yes )
2067
2067
{
2068
2068
File . WriteAllText ( solutionFile ,
@@ -2074,7 +2074,7 @@ private void ExportToVisualStudio_Click(object sender, RoutedEventArgs e)
2074
2074
}
2075
2075
2076
2076
// Write project file
2077
- if ( ! File . Exists ( projectFile )
2077
+ if ( ! File . Exists ( projectFile )
2078
2078
|| MessageBox . Show ( $ "The project file \" { projectFile } \" already exists.\r \n Do you want to override it ?",
2079
2079
"Project file override" ,
2080
2080
MessageBoxButton . YesNo ,
0 commit comments