Fix sys.inspect for regex in different context.

This commit is contained in:
Herbert Vojčík 2010-08-17 22:49:43 +02:00 committed by Ryan Dahl
parent 9253333850
commit 5dc2b93311

View File

@ -224,8 +224,7 @@ function isRegExp (re) {
&& re.compile
&& re.test
&& re.exec
&& s.charAt(0) === "/"
&& s.substr(-1) === "/";
&& s.match(/^\/.*\/[gim]{0,3}$/);
}