Skip to content

Commit

Permalink
extractRangeFromFilter - only parse column if we have a line number
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed May 7, 2020
1 parent 860e808 commit 3640623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/search/common/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ export function extractRangeFromFilter(filter: string, unless?: string[]): IFilt

if (patternMatch) {
const startLineNumber = parseInt(patternMatch.groups?.line ?? '', 10);
const startColumn = parseInt(patternMatch.groups?.col ?? '', 10);

// Line Number
if (isNumber(startLineNumber)) {
Expand All @@ -134,6 +133,7 @@ export function extractRangeFromFilter(filter: string, unless?: string[]): IFilt
};

// Column Number
const startColumn = parseInt(patternMatch.groups?.col ?? '', 10);
if (isNumber(startColumn)) {
range = {
startLineNumber: range.startLineNumber,
Expand Down

0 comments on commit 3640623

Please sign in to comment.