Skip to content

Commit

Permalink
Revert "Adding .exec to RegExp calls for IE compatibility"
Browse files Browse the repository at this point in the history
This reverts commit cc716d2.
  • Loading branch information
creationix committed May 18, 2010
1 parent a3bbf3c commit 9e3fd81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/haml.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ var Haml;

// Collect all text as raw until outdent
if (block) {
match = block.check_indent.exec(line);
match = block.check_indent(line);
if (match) {
block.contents.push(match[1] || "");
return;
Expand All @@ -372,7 +372,7 @@ var Haml;

matchers.forEach(function (matcher) {
if (!found) {
match = matcher.regexp.exec(line);
match = matcher.regexp(line);
if (match) {
block = {
contents: [],
Expand Down

0 comments on commit 9e3fd81

Please sign in to comment.