]> 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)
committerSean Bright <sean@seanbright.com>
Thu, 16 Jan 2025 14:20:48 +0000 (14:20 +0000)
commitdafac1f6f4e163901bb888e791417d11e2406dad
tree49f4d51a992d7487ef4bec0e63df3d58eeaa9ff3
parent3c867e6e6c2c76600b82805f1bb8d54d1398a01f
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