Inline magic broken for StrReplace

Issue #115 resolved
Dany Marmur created an issue

This code

var Console external 'console': Variant;
var lValue = 'a_b_c';
Console.log(StrReplace(lValue, '_', '-'));

Will log

'a-b_c'

with InlineMagic and

'a-b-c'

without.

Comments (2)

  1. Christian Budde

    I can verify this behavior. In JS some code like

    StrReplace(lValue, '_', '-')
    

    becomes either

    (lValue$1).replace("_","-")
    

    with Inline Magic

    or

    StrReplace(lValue$1,"_","-")
    

    without inline magic

  2. Log in to comment