malware-dev/MDK-SE

[Suggestion] Minifier remove string concatenation between multiline strings if both (non) interpolated

TurbogamerXD3 opened this issue · 0 comments

I've noticed that when using multiline strings the minifier does not consolidate them effectively, here is an example on what I mean:

string str = "Hello" + "World"

This would get minified to something like

string a="Hello"+"World"

Instead of

string a="HelloWorld"

If one line is interpolated and the other isn't the "+" (or "+$") should stay if the output would change.
Additionally, if a string doesn't use interpolation but has a $ in front of it that should also get removed.

I think this would be, albeit only very little, helpful to further minify code.