On Tue, 13 May 2025 10:40:22 +0200, Rasmus Villemoes wrote: > This started as a rather simple patch, 1/12, adding the ability to > more conveniently do regex matching in shell. > > But with that, it became very easy to see what the slre library can > and especially what it cannot do, and that way I found both outright > bugs and a "wow, doesn't it support that syntax" gotcha. I couldn't > find any tests ('git grep slre -- test/' was empty), so I added a > small test suite and tweaked slre.c. > > [...]
Applied to u-boot/next, thanks! [01/12] cmd: test: add support for =~ operator commit: 04044a567b6b177eb24944343d9e9e61a89edd53 [02/12] slre: add myself as maintainer commit: a5af8f9ad2779e2a18bc9d723c687ee2213086f0 [03/12] test: slre: add tests for regex library commit: ced883d92c0568cdb15b5b67106c29a4623b19d8 [04/12] slre: drop wrong "anchored" optimization commit: 19b3e24083eb0b1b5299e689d0bc5f1a6c4ebdcd [05/12] test: slre: add more test cases commit: 09b48305d3b6492553982df75e3a9f99d1f856d0 [06/12] test: slre: add some (negative) character class tests commit: ebdd78c487f6599f693e53e707606d7295f20f6e [07/12] slre: refactor is_any_but() commit: 457f19815c8f8b74c36d8cbef454a0b575ea7068 [08/12] slre: fix matching of escape sequence used inside character class commit: 5d3f91d6a82386e94c3178721641608563560871 [09/12] test: slre: add test cases for escape char in character class commit: 4d08883556b588bc1e6ef392349c51eceb550829 [10/12] slre: implement support for ranges in character classes commit: fe4f21185050ef3f2cc847ba04701d1e714522e3 [11/12] test: slre: add tests for character ranges commit: de6e54d74dec9da5d7b8572d5a0711c7280eae2c [12/12] doc: document test command commit: 6990cc5257283a631a286a4321a3515c7537f636 -- Tom