Skip to content

Commit

Permalink
Fix sys.inspect for regex in different context.
Browse files Browse the repository at this point in the history
  • Loading branch information
Herbert Vojčík authored and ry committed Aug 18, 2010
1 parent 9253333 commit 5dc2b93
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/sys.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,7 @@ function isRegExp (re) {
&& re.compile
&& re.test
&& re.exec
&& s.charAt(0) === "/"
&& s.substr(-1) === "/";
&& s.match(/^\/.*\/[gim]{0,3}$/);
}


Expand Down

0 comments on commit 5dc2b93

Please sign in to comment.