codePreviews: fix line numbers pulling from wrong string
This commit is contained in:
parent
546832f675
commit
dc03de59c4
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ async function processFile(link) {
|
||||||
let entireFile = false;
|
let entireFile = false;
|
||||||
|
|
||||||
if (lineStr) {
|
if (lineStr) {
|
||||||
const [start, end] = link.match(/\d+/g);
|
const [start, end] = lineStr.match(/\d+/g);
|
||||||
if (!end) {
|
if (!end) {
|
||||||
startLine = endLine = start;
|
startLine = endLine = start;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue