From 90ae8f31768954e316bd8baed9ab3cf125b6b6c0 Mon Sep 17 00:00:00 2001 From: bleck9999 <55853712+bleck9999@users.noreply.github.com> Date: Sat, 28 Aug 2021 21:35:43 +0100 Subject: [PATCH] missing ) goes brrrr this isnt even a change to code i literally just forgot a ) at the end of a string --- ts-minifier.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ts-minifier.py b/ts-minifier.py index 0340f10..70f9db1 100644 --- a/ts-minifier.py +++ b/ts-minifier.py @@ -1,6 +1,6 @@ # Copyright (c) 2021 bleck9999 # https://github.com/bleck9999/ts-minifier -# Version: 1095d14a +# Version: c1b874bb import argparse import itertools @@ -181,15 +181,15 @@ def minify(script: Code, userobjects, usages): userobjects[minName] = "TRN" break if not minName: - print(f"{'Function' if otype == 'func' else 'Variable'} name {uo} could be shortened but no available " - f"names found (would save {uses} bytes)") + print(f"{'Function' if otype == 'func' else 'Variable'} name {uo} could be shortened but " + f"no available names found (would save {uses} bytes)") continue # we assume that nobody is insane enough to exhaust all *2,808* 2 character names, # instead that uo is len 2 and all the 1 character names are in use (because of that we dont multiply # uses by anything as multiplying by a difference of 1 would be redundant) if not auto_replace: print(f"{'Function' if otype == 'func' else 'Variable'} name {uo} could be shortened ({uo}->{minName}, " - f"would save {uses*(uolen - len(minName))} bytes") + f"would save {uses*(uolen - len(minName))} bytes)") continue else: print(f"Renaming {'Function' if otype == 'func' else 'Variable'} {uo} to {minName} "