Simplify regexp escaping in text-mate-grammar.coffee

This commit is contained in:
Matt Colyer
2013-11-07 09:26:56 -08:00
parent b69bc8ce71
commit 38a3c0dbd3

View File

@@ -6,7 +6,7 @@ path = require 'path'
{Emitter} = require 'emissary'
{ScopeSelector} = require 'first-mate'
pathSplitRegex = new RegExp("[#{"\\"+path.sep}.]")
pathSplitRegex = new RegExp("[#{_.escapeRegExp(path.sep)}.]")
### Internal ###