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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…