mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-16 01:40:35 -06:00
Update Replace Regex for Code Formatting in 'Do-PreProcessing' Script Tool
This commit is contained in:
parent
177bbc752b
commit
1803337574
@ -42,11 +42,10 @@ function Do-PreProcessing {
|
||||
-replace ('\t', ' ') `
|
||||
-replace ('\)\{', ') {') `
|
||||
-replace ('\)\r?\n\s*{', ') {') `
|
||||
-replace ('Try \{', 'try {') `
|
||||
-replace ('try\{', 'try {') `
|
||||
-replace ('Try(\s*)?\{', 'try {') `
|
||||
-replace ('try\r?\n\s*\{', 'try {') `
|
||||
-replace ('}\r?\n\s*catch', '} catch') `
|
||||
-replace ('\} Catch', '} catch') `
|
||||
-replace ('\}(\s*)?Catch', '} catch') `
|
||||
| Set-Content "$file"
|
||||
Write-Progress -Activity $ProgressActivity -Status "$ProgressStatusMessage - Finished $i out of $numOfFiles" -PercentComplete (($i/$numOfFiles)*100)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user