Commit 780e7c5
committed
[2 of 2]: filter::parse_spec() ignore bogon empty, blank substrings
Fix issue demonstrated by unit tests in commit 2ff2bf1.
While parsing comma-separated substrings, parse_spec() now trims the
values to ensure empty and blank substrings (which are invalid) are
ignored.
Previously, only-comma-separated empty substrings were being
ignored. This change extends that intent to also ignore the empty
string (no comma), stand-alone blank strings (no comma), and comma-
separated variations of empty and/or blank substrings.1 parent 1205e4d commit 780e7c5
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
0 commit comments