RPTools / maptool

Virtual Tabletop for playing roleplaying games with remote players or face to face.
http://rptools.net
GNU Affero General Public License v3.0
787 stars 259 forks source link

[Bug]: String operations - weird results with $ #4882

Open bubblobill opened 4 weeks ago

bubblobill commented 4 weeks ago

Describe the Bug

doing a test in chat I entered [substring("p5$0",1)] expecting the usual explosion of an illegal group reference error. What I got was 5StringLiteralTransformer146TOKEN changing to [substring("p5$0",1)] I get ingLiteralTransformer151TOKEN

To Reproduce

  1. in chat enter [substring("p5$0",1)]
  2. hit enter
  3. in chat enter [substring("p5$0",5)]
  4. hit enter

Expected Behaviour

I expected the old error illegal group reference Ideally I would get 5$0 in the first case, and an out of bounds error for the second

Screenshots

No response

MapTool Info

1.15rc3

Desktop

win10

Additional Context

No response