godot
godot copied to clipboard
Evaluate selection (Ctrl+Shift+E) does not parse underscores
Tested versions
v4.3.1.rc.custom_build [d40fc50f0] 4.4 on latest master
System information
Godot v4.3.1.rc (d40fc50f0) - Manjaro Linux #1 SMP PREEMPT_DYNAMIC Wed Aug 7 16:19:28 UTC 2024 - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 7900 XT (RADV NAVI31) - AMD Ryzen 9 7900X 12-Core Processor (24 Threads)
Issue description
In the script editor, selecting an expression and pressing the shortcut for Evaluate Selection does just what the name suggests, e.g. selecting 10+24
will transform the selection into 34
. However, for larger numbers, or any number where you put underscores for readability, e.g. 500+10_000
, all characters starting from the underscore are ignored, which results in 510
instead of 10500
.
Steps to reproduce
- Type an expression in the script editor, with one number containing an underscore.
- Press the Evaluate Selection shortcut (or select it from the context menu).
- The result will not consider any characters after the underscore and will simply remove them.
Minimal reproduction project (MRP)
N/A