Skip to content

Commit 30199d6

Browse files
committed
Fix language bug
1 parent 27e4be3 commit 30199d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

netstack.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@
159159
// look for the language(s) in the stack trace
160160
lang = this.detectLanguagesInOrder(lines, languagesRegex);
161161

162-
if (lang === '') return;
162+
// if no language is found, return
163+
if (lang.length === 0) return;
163164

164165
// if multiline option is true, check if the language is the same for all lines
165166
if (typeof lang === 'object') {

0 commit comments

Comments
 (0)