Section One BBS

Welcome, Guest.


Subject: src/sbbs3/str_util.c str_util.h Date: Sun Aug 08 2021 11:03 pm
From: Rob Swindell To: Git commit to main/sbbs/master

https://gitlab.synchro.net/main/sbbs/-/commit/5b359484e144b2ff8bdc2dba
Modified Files:
        src/sbbs3/str_util.c str_util.h
Log Message:
Allow '*' pattern character to be used mid-string (not just beg or end)
                                                                       
                                                                       Previousl
y, the '*' matching pattern character could only be used as the beginning or end
ing character of a pattern string; for any other use, it was treated just as any
 other exact-match character.
                             
                             Now, you can have exact-match characters on both th
e left and right sides of the '*', so pattern matching like the following is pos
sible:
      
      <*@gmail.com>
                   digital*man
                              
                              Multiple '*'s are still not treated special (only 
the first/left-most '*" is), so, for example, "*blah*" will not likely produce t
he desired matching effect (use "blah~" instead for this case).

---
 ■ SynchronetVertrauen Home of Synchronet [vert/cvs/bbs].synchro.net

Previous Message       Next Message