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