Regular expression fixes.

This commit is contained in:
Storm Dragon 2024-08-18 03:25:48 -04:00
parent 811ac7aea3
commit f52beba3d8

View File

@ -48,6 +48,8 @@ doomGames=(
export antiGrepStrings=( export antiGrepStrings=(
'-E' '-v' '-E' '-v'
'-e' '^(Decal|Fluidsynth|Load|Parse)[^ ]+'
'-e' '^OS: .*Linux, Linux .*'
'-e' '^Resolution:' '-e' '^Resolution:'
'-e' '^\[Toby Accessibility Mod\] (INTRO|READMe)([0-9]+).*' '-e' '^\[Toby Accessibility Mod\] (INTRO|READMe)([0-9]+).*'
) )
@ -55,7 +57,7 @@ export antiGrepStrings=(
export grepStrings=( export grepStrings=(
'-E' '-E'
'-e' '^\[Toby Accessibility Mod\]' '-e' '^\[Toby Accessibility Mod\]'
'-e' '^[A-Z][0-9a-z]+: .+' '-e' '^[A-Z][0-9A-Za-z]+: .+'
'-e' 'is now known as' '-e' 'is now known as'
'-e' '.+ punched .+ to death\.' '-e' '.+ punched .+ to death\.'
'-e' 'stood where' '-e' 'stood where'
@ -64,7 +66,6 @@ export grepStrings=(
'-e' 'chewed on' '-e' 'chewed on'
'-e' 'The maximum' '-e' 'The maximum'
'-e' 'swapped two barrels' '-e' 'swapped two barrels'
'-e' 'MAP[0-9]+'
'-e' 'swallowed too much of' '-e' 'swallowed too much of'
'-e' 'exited the level' '-e' 'exited the level'
'-e' 'joined the game' '-e' 'joined the game'
@ -77,17 +78,17 @@ export grepStrings=(
'-e' '^You have no keys in your pocket!$' '-e' '^You have no keys in your pocket!$'
) )
export sedStrings=( export sedStrings=('-E'
'-e' 's/^\[Toby Accessibility Mod\] M_/[Toby Accessibility Mod] /' '-e' 's/^\[Toby Accessibility Mod\] M_/[Toby Accessibility Mod] /'
'-e' 's/^\[Toby Accessibility Mod\] //' '-e' 's/^\[Toby Accessibility Mod\] //'
'-e' 's/^MessageBoxMenu$/Press Y for yes or N for no/' '-e' 's/^MessageBoxMenu$/Press Y for yes or N for no/'
'-e' 's/"^Mainmenu$/Main menu/' '-e' 's/^Mainmenu$/Main menu/'
'-e' 's/"^Skillmenu$/Difficulty menu/' '-e' 's/^Skillmenu$/Difficulty menu/'
'-e' 's/"^NGAME$/New game/' '-e' 's/^NGAME$/New game/'
'-e' 's/"^(LOAD|SAVE|QUIT)G$/& game/' '-e' 's/^(LOAD|SAVE|QUIT)G$/\1 game/'
'-e' 's/"cl_run" = "true"/run/' '-e' 's/"cl_run" = "true"/run/'
'-e' 's/"cl_run" = "false"/walk/' '-e' 's/"cl_run" = "false"/walk/'
'-e' 's:.*/:Game saved. \(:' #'-e' 's:.*/:Game saved. \(:'
) )
custom_game() { custom_game() {