aadl / summergame

Code that runs the AADL Summer Game
http://play.aadl.org
GNU General Public License v2.0
5 stars 2 forks source link

fix partial string code matches from redirecting to badge #108

Closed taleon closed 5 months ago

taleon commented 5 months ago

Prevents partial strings in codes from matching with badge formulas and redirecting in case of similarities in lawn/library codes or possibly other SG codes.

taleon commented 5 months ago

Used preg_split to get both , and | since collection badges could have either just to be safe. If we only need the , we can definitely change it to explode later.