mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
With just (\d+), the very first regex would find a number within a longer string, which for the following example would be wrongly 3, not 2318270. Make it match just a number and nothing else. Interestingly, plain number search would work for most gerrit urls, but let's be specific to avoid accidents. example: https://git-master.nvidia.com/r/c/3rdparty/qnx/src/+/2318270 Also make the list more concise by joining almost identical pairs that differ by just one character: use "?" to make the character optional. Change-Id: Ia1b2ee4270c599ec7bcc2c4375c8a8f498043b27 Signed-off-by: Konsta Hölttä <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2318496 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit