Is it a bug in Ecmascript - /\S/.test(null) returns true ?
- by Lauri
Both in Actionscript3 and Javascript these statements give the same result:
/\S/.test(null) = true
/null/.test(null) = true
/m/.test(null) = false
/n/.test(null) = true
Seems that null value is converted into string "null" in this case.
Is this a known bug in Ecmascript or am I missing something?