]>
jfr.im git - irc/quakenet/qwebirc.git/blob - js/ui/hilightcontroller.js
1 qwebirc
.ui
.HilightController
= new Class({
2 initialize: function(parent
) {
7 match: function(text
) {
8 var nick
= this.parent
.nickname
;
9 if(nick
!= this.prevnick
)
10 this.regex
= new RegExp('\\b' + RegExp
.escape(nick
) + '\\b', "i");
12 if(text
.match(this.regex
))