Fixed a really interesting bug today in the Cloze deletion code (discovered by +Dougie Nisbet) involving multiple clozes like "[buds] [bud]". Was really a fun brain twister to get it right, and now it even works for silly stuff like "[bud] [bud]".

While editing cards like this, I identified (but not yet fixed) a scenario that causes these cards to get messed up. Could this be the mysterious lurking cloze edit bug, or is it another bug entirely? The excitement is killing me :-)
Shared publiclyView activity