Commit 6de75e2
committed
fix(available_interfaces): fix regression of unwanted trailing colons
This is a fix for regression introduced in commit b603535 and
reported in GitHub #1129 [1]. The trailing colons of the generated
interface names were removed before, but not they are not removed.
[1] #1129
In addition, generated words can have the form `veth0@veth1`, where we
want only the first part `veth0` not containing any punctuation
characters.
In this patch, we remove any [[:punct:]] and all the later characters
in the generated words.1 parent fdd8048 commit 6de75e2
File tree
3 files changed
+27
-1
lines changed- test/t/unit
3 files changed
+27
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1737 | 1737 | | |
1738 | 1738 | | |
1739 | 1739 | | |
1740 | | - | |
| 1740 | + | |
1741 | 1741 | | |
1742 | 1742 | | |
1743 | 1743 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments