Commit fb130ad
committed
fix(gnokii): avoid non-POSIX ERE \b
The word-boundary anchor \b is not supported by POSIX Extended Regular
Expressions (ERE). Also, the previous implementation did not consider
the word-boyndary for the last element. We here explicitly match the
trailing /[^_[:alnum:]]/ or /$/.
Another issue is that the previous implementation did not work because
of contaminated newlines in the ERE. We now split the results by
newlines and then join the elements with IFS='|'.1 parent 3a8a2ed commit fb130ad
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
231 | 235 | | |
232 | 236 | | |
233 | 237 | | |
| |||
0 commit comments