Incorrect regex parsing (example included)

Bug Reports and Fixes
Post Reply
nickolay
Posts: 1
Joined: Tue Feb 09, 2010 3:29 pm

Incorrect regex parsing (example included)

Post by nickolay » Tue Feb 09, 2010 3:33 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests