Commit 33c18ce
committed
fix(_mock,rpm): avoid icase flag
Flag i for the case-insensitive matching is a GNU extension and thus
should be avoided.
The mock completion contains s/.../.../i while the rpm completion also
contains a similar code but without flag i. The related sed code in
the rpm completion was introduced in commit 14c9f5b (2009-05-23),
and that in the mock completion was introduced in commit 508a88e
(2009-05-31). The former did not have flag i while the latter had
flag i from the beginning.
In this patch, we assume the case-insensitive flag was intended for
both cases and update the regular expression so that it matches in a
case-insensitive manner also in the rpm completion.s/reg/rep/i of GNU sed1 parent 1989ba9 commit 33c18ce
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
48 | | - | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | | - | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
0 commit comments