]> git.ipfire.org Git - thirdparty/asterisk.git/commit
strings.c: Improve numeric detection in `ast_strings_match()`.
authorSean Bright <sean@seanbright.com>
Wed, 15 Jan 2025 16:42:29 +0000 (11:42 -0500)
committerGeorge Joseph <gjoseph@sangoma.com>
Thu, 16 Jan 2025 15:14:32 +0000 (08:14 -0700)
commit10472916625b639ab509ce3cee414c341d1d0987
treee93523f5f3dae7736f898aa0dac081db79264719
parent3868f7cb47430c69a10477e97b4797c0d214855b
strings.c: Improve numeric detection in `ast_strings_match()`.

Essentially, we were treating 1234x1234 and 1234x5678 as 'equal'
because we were able to convert the prefix of each of these strings to
the same number.

Resolves: #1028
main/strings.c
tests/test_strings.c