From 831d26f3dd9b31df0a633501f8b84778307fef8a Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 18 Sep 2014 13:59:59 -0700 Subject: [PATCH] respond to code review comments --- src/services/services.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/services.ts b/src/services/services.ts index 265e250b07e..8f5ca3c386b 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -3644,7 +3644,7 @@ module ts { // Note that the outermost group is *not* a capture group, but the innermost groups // *are* capture groups. By capturing the inner literals we can determine after // matching which descriptor we are dealing with. - var literals = "(?:" + descriptors.map(d => "(" + escapeRegExp(d.text) + ")").join("|") + ")"; + var literals = "(?:" + map(descriptors, d => "(" + escapeRegExp(d.text) + ")").join("|") + ")"; // After matching a descriptor literal, the following regexp matches the rest of the // text up to the end of the line (or */).