Fix wrong line numbers by not trimming the start of expressions

We still trim the end because else `Tokenizer` crashes...
But trimming the end doesn't matter because there's it doesn't affect anything.
This commit is contained in:
altrisi authored and GitHub committed 2022-10-09 13:13:37 +02:00
1 parent 3f5eac7472
commit a50a0d7328
1 file changed
+1 -1
+1 -1
View File
@@ -748,7 +748,7 @@ public class Expression
*/
public Expression(String expression)
{
this.expression = expression.trim().replaceAll("\\r\\n?", "\n").replaceAll("\\t"," ");
this.expression = expression.stripTrailing().replaceAll("\\r\\n?", "\n").replaceAll("\\t"," ");
Operators.apply(this);
ControlFlow.apply(this);
Functions.apply(this);