Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make class/id/tag regex case insensitive

  • Loading branch information...
commit 60e9680e64d1ddb7d8e7bfc164ead26562d0bf7d 1 parent cb86962
@aeosynth aeosynth authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/haml.js
View
6 lib/haml.js
@@ -138,9 +138,9 @@ if (exports) {
process: function () {
var tag, classes, ids, attribs, content;
tag = this.matches[2];
- classes = tag.match(/\.([a-z_\-][a-z0-9_\-]*)/g);
- ids = tag.match(/\#([a-z_\-][a-z0-9_\-]*)/g);
- tag = tag.match(/\%([a-z_\-][a-z0-9_\-]*)/g);
+ classes = tag.match(/\.([a-z_\-][a-z0-9_\-]*)/gi);
+ ids = tag.match(/\#([a-z_\-][a-z0-9_\-]*)/gi);
+ tag = tag.match(/\%([a-z_\-][a-z0-9_\-]*)/gi);
// Default to <div> tag
tag = tag ? tag[0].substr(1, tag[0].length) : 'div';
Please sign in to comment.
Something went wrong with that request. Please try again.