mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-24 20:44:53 -05:00
Ensure region boundaries are entire line
This commit is contained in:
@@ -8,8 +8,8 @@ namespace ts.OutliningElementsCollector {
|
||||
let depth = 0;
|
||||
const regions: RegionRange[] = [];
|
||||
const regionText = "#region";
|
||||
const regionStart = new RegExp("//\\s*#region(\\s+.*)?$", "gm");
|
||||
const regionEnd = new RegExp("//\\s*#endregion(\\s|$)", "gm");
|
||||
const regionStart = new RegExp("^\\s*//\\s*#region(\\s+.*)?$", "gm");
|
||||
const regionEnd = new RegExp("^\\s*//\\s*#endregion(\\s|$)", "gm");
|
||||
|
||||
walk(sourceFile);
|
||||
gatherRegions();
|
||||
|
||||
Reference in New Issue
Block a user