Browse Source

Fix sys.inspect for regex in different context.

v0.7.4-release
Herbert Vojčík 15 years ago
committed by Ryan Dahl
parent
commit
5dc2b93311
  1. 3
      lib/sys.js

3
lib/sys.js

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

Loading…
Cancel
Save