[Scripts > Strip] Fix switch cases

This commit is contained in:
Ducko 2022-02-06 21:33:04 +00:00
parent 38e821a6fa
commit a39d76bf25
2 changed files with 5 additions and 1 deletions

View file

@ -70,7 +70,10 @@ jobs:
- name: Check if Discord will startup
run: |
xvfb-run -e /dev/stdout ./DiscordCanary/DiscordCanary --enable-logging
coproc { xvfb-run -e /dev/stdout ./DiscordCanary/DiscordCanary --enable-logging; }
grep -m1 "Installing discord_rpc" <&${COPROC[0]}
sleep 1
[[ $COPROC_PID ]] && kill $COPROC_PID
timeout-minutes: 1
release:

View file

@ -13,6 +13,7 @@ const stripCode = (code) => code
.replaceAll('typeof ', 'typeof#')
.replaceAll(' of ', '#of#')
.replaceAll(' in ', '#in#')
.replaceAll('case ', 'case#')
.replaceAll('await ', 'await#')
.replaceAll('new ', 'new#')
.replaceAll('return ', 'return#')