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.
1 parent dfe8a05 commit eb28e66Copy full SHA for eb28e66
src/views/providers/helpers.ts
@@ -5,10 +5,5 @@
5
'use strict';
6
7
export function stripComments(line: string): string {
8
- // eslint-disable-next-line
9
- const re1 = /\s*\([^\)]*\)/g; // Remove anything inside the parentheses
10
- const re2 = /\s*;.*/g; // Remove anything after a semi-colon to the end of the line, including preceding spaces
11
- const re3 = /\s+/g;
12
-
13
- return line.replace(re1, '').replace(re2, '').replace(re3, '');
+ return line.replace(/\s*\(.*\)\s*$|^\s*;.*/g, '');
14
}
0 commit comments