Currently, there are "What:" symbols for more than just /sys. Extend the regex to also cover configfs, /proc /dev and /kvd symbols.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -285,7 +285,7 @@ sub create_labels { · 284 unmodified lines | ||
| 285 | 285 | # Boundaries are punct characters, spaces and end-of-line |
| 286 | 286 | my $start = qr {(^|\s|\() }x; |
| 287 | 287 | my $bondary = qr { ([,.:;\)\s]|\z) }x; |
| 288 | −my $xref_match = qr { $start(\/sys\/[^,.:;\)\s]+)$bondary }x; | |
| 288 | +my $xref_match = qr { $start(\/(sys|config|proc|dev|kvd)\/[^,.:;\)\s]+)$bondary }x; | |
| 289 | 289 | my $symbols = qr { ([\x01-\x08\x0e-\x1f\x21-\x2f\x3a-\x40\x7b-\xff]) }x; |
| 290 | 290 | |
| 291 | 291 | sub output_rest { |