Skip to content

Commit

Permalink
Strip line breaks and other spaces from symbol names
Browse files Browse the repository at this point in the history
  • Loading branch information
savetheclocktower committed Jan 3, 2024
1 parent 83972a9 commit ee86a18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/symbols-view/lib/symbols-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ class SymbolsView {
symbol.directory = `${parts.dir}${Path.sep}`;
symbol.file = parts.base;
}
symbol.name = symbol.name.replace(/[\n\r\t]/, ' ');
allSymbols.push(symbol);
}
}
Expand Down

0 comments on commit ee86a18

Please sign in to comment.