#4686 Code analyzer for regular expression in javascript

All
open
nobody
5
2014-02-10
2014-02-10
Aurelien
No

There is a problem with the code analyzer for regular expression in javascript.

Tested with the following code:

{literal}{/literal}
{if $v == '1'}v = 0;{/if}
function f()
{
    Ajax(
        {/literal}{urljsstring 'Module~Controller:Function'}{literal},
        {'param1' : param1},
        function(data){

        });
}

I use jelix framework, that is why there has {/ literal}

The problem is for the beginning and end of instructions/functions.
Maybe have the option to disable code analyzer for regular expressions in a language or any language.

I'm French, I'm sorry for my english.

Discussion

  • Aurelien
    Aurelien
    2014-02-10

    Sorry but the problem was detected only from the version 6.5