Page 1 of 1

Incorrect regex parsing (example included)

Posted: Tue Feb 09, 2010 3:33 pm
by nickolay
Hello,

My version of Spket (plugin for eclipse v1.6.18) incorrectly highlights the following regex:

Code: Select all

    getHash : function () {
        return /[^#]*(?:#(.*))?/.exec(window.location.href)[1] || null
    },
It only treats this part as regex:

Code: Select all

/.exec(window.location.href)[1] || null
Otherwise great tool, thanks a lot.

Regards, Nickolay