Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Allow filter names to have hyphens in them
  • Loading branch information...
commit e49767cdd59ce3b9f3a7cf1498236debb2bd0e4d 2 parents 23391cc + d65fd9c
@ForbesLindesay ForbesLindesay authored
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];
Please sign in to comment.
Something went wrong with that request. Please try again.