Skip to content

Commit

Permalink
Fix language bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ZsharE committed Jan 24, 2025
1 parent 27e4be3 commit 30199d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion netstack.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@
// look for the language(s) in the stack trace
lang = this.detectLanguagesInOrder(lines, languagesRegex);

if (lang === '') return;
// if no language is found, return
if (lang.length === 0) return;

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

0 comments on commit 30199d6

Please sign in to comment.