Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding .exec to RegExp calls for IE compatibility

  • Loading branch information...
commit cc716d295c2e85543c2a7363caad0dd2546730a8 1 parent da58d28
@railsjedi railsjedi authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/haml.js
View
4 lib/haml.js
@@ -360,7 +360,7 @@ var Haml;
// Collect all text as raw until outdent
if (block) {
- match = block.check_indent(line);
+ match = block.check_indent.exec(line);
if (match) {
block.contents.push(match[1] || "");
return;
@@ -372,7 +372,7 @@ var Haml;
matchers.forEach(function (matcher) {
if (!found) {
- match = matcher.regexp(line);
+ match = matcher.regexp.exec(line);
if (match) {
block = {
contents: [],
Please sign in to comment.
Something went wrong with that request. Please try again.