Commit graph

5 commits

Author SHA1 Message Date
Sam Reed
daa4e524b7 More occurrence typos 2012-03-19 21:40:39 +00:00
Brion Vibber
596a2584b0 Fix a regression in search highlighting from r90092
Followup on r94609, r94681 test cases.
This fixes the test case with a period that was failing; problem was not the period, but the space before.
The changed regex in r90092 ended up including the preceding whitespace in the match, so the position of the match was coming up one character before the actual word -- thus offsetting the highlight by one char.

Changed from search to match, using the regex's index property (same as search returns) and adding in the length of the first match component which covers the space/whatever
2011-08-16 22:42:57 +00:00
Thomas Gries
016e0ca113 fix for bug29371 . regex wordwrap with UTF8: do not use \b metacharacter. The problem is that JavaScript recognizes word boundaries only before/after ASCII letters (and numbers/underscore) 2011-06-14 21:42:25 +00:00
Roan Kattouw
85d474d85f Fix JS errors thrown by SimpleSearch: add dependency from jquery.autoEllipsis to jquery.highlightText, and fix the latter for the RegExp.escape() -> $.escapeRE() rename 2010-12-23 14:16:20 +00:00
Roan Kattouw
32377424b9 Merging resourceloader branch into trunk. Full documentation is at http://www.mediawiki.org/wiki/ResourceLoader and a general overview has been posted on wikitech-li <http://lists.wikimedia.org/pipermail/wikitech-l/2010-September/049253.html>. One important change is that all JS is now loaded at the bottom, so any scripts assuming things from wikibits or whatever are present will fail. 2010-09-04 04:00:09 +00:00