diff options
author | Norbert Preining <norbert@preining.info> | 2023-03-27 03:03:42 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-03-27 03:03:42 +0000 |
commit | 8ee50414f6054311ac11efe8ea6360c25c622498 (patch) | |
tree | e1b68ea1215d21284e59d95c2a39a632efea083b /support/texlab/src/features | |
parent | 17a3481529d31ffd1586ca65dde09742f9b5c471 (diff) |
CTAN sync 202303270303
Diffstat (limited to 'support/texlab/src/features')
-rw-r--r-- | support/texlab/src/features/symbol/types.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/support/texlab/src/features/symbol/types.rs b/support/texlab/src/features/symbol/types.rs index 96b26be153..9e8ea28792 100644 --- a/support/texlab/src/features/symbol/types.rs +++ b/support/texlab/src/features/symbol/types.rs @@ -85,11 +85,13 @@ impl InternalSymbol { while i < container.len() { let symbol = &mut container[i]; - if util::regex_filter::filter( - &symbol.name, - &config.allowed_patterns, - &config.ignored_patterns, - ) { + if !symbol.name.is_empty() + && util::regex_filter::filter( + &symbol.name, + &config.allowed_patterns, + &config.ignored_patterns, + ) + { Self::filter(&mut symbol.children, config); i += 1; } else { |