Skip to content

Commit 1c56baa

Browse files
committed
fix(spell-checker): split report string only by first separator entry to prevent splitting the content string
1 parent 618ae98 commit 1c56baa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test_modules/checkAll/check.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ module.exports = function(files, showprogressbar, callback) {
7272
if (splitReport.length >= 3) {
7373
//build error log
7474
for (var i = 1; i <= splitReport.length - 2; i++) {
75-
var splitReason = splitReport[i].split('|');
75+
var splitReason = splitReport[i].split(/\|(.+)/);
7676
cntMdspell++;
7777
logMdSpell += '\n\n > Error: \n file: ' + fname +
7878
"\n line: " + splitReason[0] +

0 commit comments

Comments
 (0)