[Scripts > Strip] Fix switch cases
This commit is contained in:
parent
38e821a6fa
commit
a39d76bf25
2 changed files with 5 additions and 1 deletions
5
.github/workflows/nightly.yml
vendored
5
.github/workflows/nightly.yml
vendored
|
@ -70,7 +70,10 @@ jobs:
|
||||||
|
|
||||||
- name: Check if Discord will startup
|
- name: Check if Discord will startup
|
||||||
run: |
|
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
|
timeout-minutes: 1
|
||||||
|
|
||||||
release:
|
release:
|
||||||
|
|
|
@ -13,6 +13,7 @@ const stripCode = (code) => code
|
||||||
.replaceAll('typeof ', 'typeof#')
|
.replaceAll('typeof ', 'typeof#')
|
||||||
.replaceAll(' of ', '#of#')
|
.replaceAll(' of ', '#of#')
|
||||||
.replaceAll(' in ', '#in#')
|
.replaceAll(' in ', '#in#')
|
||||||
|
.replaceAll('case ', 'case#')
|
||||||
.replaceAll('await ', 'await#')
|
.replaceAll('await ', 'await#')
|
||||||
.replaceAll('new ', 'new#')
|
.replaceAll('new ', 'new#')
|
||||||
.replaceAll('return ', 'return#')
|
.replaceAll('return ', 'return#')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue