Fixed Bug: Matching page titles in middle of words

Bil Kleb reports:

After restarting with the CVS changes as of Saturday, I am getting links in the middle of words, i.e., “capabilities” will have “bil” linked in the middle (someone has a page named “bil“). I don’t recall this happening with earlier versions.


Fix is to edit soks-view.rb in the BruteMatch match method:

Replace regexp = /#{Regexp.escape(title)}/i with regexp = /\b#{Regexp.escape(title)}\b/i

tamc2

Perfect. Thanks. —Bil

Fixed in v0-0-7

Edit this page or watch for changes using RSS.