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 2ff9f54 commit e62c2faCopy full SHA for e62c2fa
src/git.ts
@@ -82,8 +82,8 @@ const getGitFileList = (): string[] => {
82
};
83
84
const isHunkHeader = (input: string) => {
85
- const hunkHeaderRE = new RegExp(/^@@ .* @@/g);
86
- return input.match(hunkHeaderRE);
+ const hunkHeaderRE = new RegExp(/^@@ [^@]* @@/);
+ return hunkHeaderRE.exec(input);
87
88
89
const getRangeForChangedLines = (line: string) => {
0 commit comments