Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e7b2017 + 6ba4dbe commit 3837518Copy full SHA for 3837518
src/services/outliningElementsCollector.ts
@@ -33,7 +33,7 @@ namespace ts.OutliningElementsCollector {
33
const currentLineStart = lineStarts[i];
34
const lineEnd = i + 1 === lineStarts.length ? sourceFile.getEnd() : lineStarts[i + 1] - 1;
35
const lineText = sourceFile.text.substring(currentLineStart, lineEnd);
36
- const result = lineText.match(/^\s*\/\/\s*#(end)?region(?:\s+(.*))?$/);
+ const result = lineText.match(/^\s*\/\/\s*#(end)?region(?:\s+(.*))?(?:\r)?$/);
37
if (!result || isInComment(sourceFile, currentLineStart)) {
38
continue;
39
}
0 commit comments