Browse files

Merge pull request #1319 from visionmedia/filters-with-hyphens

Allow filter names to have hyphens in them
  • Loading branch information...
2 parents 23391cc + d65fd9c commit e49767cdd59ce3b9f3a7cf1498236debb2bd0e4d @ForbesLindesay ForbesLindesay committed Dec 10, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/lexer.js
View
4 lib/lexer.js
@@ -234,7 +234,7 @@ Lexer.prototype = {
*/
filter: function() {
- return this.scan(/^:(\w+)/, 'filter');
+ return this.scan(/^:([\w\-]+)/, 'filter');
},
/**
@@ -374,7 +374,7 @@ Lexer.prototype = {
includeFiltered: function() {
var captures;
- if (captures = /^include:([a-zA-Z0-9\-]+) +([^\n]+)/.exec(this.input)) {
+ if (captures = /^include:([\w\-]+) +([^\n]+)/.exec(this.input)) {
this.consume(captures[0].length);
var filter = captures[1];
var path = captures[2];

0 comments on commit e49767c

Please sign in to comment.