Create account / Log in

string bug? Using .replace to replace quotation marks

Issues with the Vassal engine.

Moderators: uckelman, Tim M

string bug? Using .replace to replace quotation marks

Postby marktb1961 » January 1st, 2021, 9:01 pm

Vassal v3.4.12

I figure that the beanshell expression {name.replace("\"","")} ought to return a string that is stripped of any double quotation marks that were present in the dynamic property "name".

However, instead I get the error, ending in the message:-

Expression evaluation error {name.replace("\"","")}
Platform: Vassal 3.5.3, MacOS Big Sur on iMac (27", mid-2020)
User avatar
marktb1961
 
Posts: 439
Joined: October 4th, 2018, 2:36 pm
Location: Liverpool, England

Return to Technical Support & Bugs

Who is online

Users browsing this forum: Google [Bot] and 2 guests