[Scripts > Strip] Fix switch cases

main
Oj 2 years ago
parent 38e821a6fa
commit a39d76bf25

@ -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:

@ -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#')

Loading…
Cancel
Save