summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJacob Abel <jacobabel@nullpo.dev>2023-07-26 21:42:34 +0000
committerJunio C Hamano <gitster@pobox.com>2023-07-26 14:49:02 -0700
commitd1b72cb36487772fa70217f4234c886db7a5892f (patch)
treea1f2c8b5598a74c460fb136bab8940647ed04936 /commit.c
parent7e42d4bf15b5d8fee1f43cefdc49cf516e94bc27 (diff)
t2400: rewrite regex to avoid unintentional PCRE
Replace all cases of `\s` with ` ` as it is not part of POSIX BRE or ERE and therefore not all versions of grep handle it. For the same reason all cases of `\S` are replaced with `[^ ]`. It is not an exact replacement but it is close enough for this use case. Also, do not write `\+` in BRE and expect it to mean 1 or more; it is a GNU extension that may not work everywhere. Remove `.*` from the end of a pattern that is not right-anchored. Signed-off-by: Jacob Abel <jacobabel@nullpo.dev> Helped-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions