maxtaco/tamejs — Issue #27: tame mangles raw regexps
Author: debonet
Created: 2011-12-07 19:26:48+00:00
State: open

Example:

if ( /^some/.test( "something" ) ){
... whatever
}

gets tamed into:

// ... tame goop
if ( / ^some / .test ( "something )) {
... whatever
}
// ... tame goop

Note the spaces before and after the /'s in the regexp which is a different regular expression all together