/(?:\s|\W|^)(bug\s+(?:#?\d{3,6}|#[^\s,]{1,20}))/i, 
/(?:\s|\W|^)(bug\s+(?:#?\d+|#[^\s,]{1,20}))/i, 
function initMunger(){    /* linkRE: the general URL linkifier regular expression:     *     * - start with whitespace, non-word, or begining-of-line     * - then match:     *   - EITHER scheme (word + hyphen), colon, then lots of non-whitespace     *   - OR "www" followed by at least 2 sets of:     *     - "." plus some non-whitespace, non-"." characters     * - must end match with a word-break     * - include a "/" or "=" beyond break if present     * - end with whitespace, non-word, or end-of-line     */    client.linkRE =        /(?:\s|\W|^)((?:(\w[\w-]+):[^\s]+|www(\.[^.\s]+){2,})\b[\/=]?)(?:\s|\W|$)/;    var munger = client.munger = new CMunger();    // Special internal munger!    munger.addRule (".inline-buttons", /(\[\[.*?\]\])/, insertInlineButton, false);    munger.addRule ("quote", /(``|'')/, insertQuote);    munger.addRule ("bold", /(?:\s|^)(\*[^*()]*\*)(?:[\s.,]|$)/,                     "chatzilla-bold");    munger.addRule ("underline", /(?:\s|^)(\_[^_()]*\_)(?:[\s.,]|$)/,                    "chatzilla-underline");    munger.addRule ("italic", /(?:\s|^)(\/[^\/()]*\/)(?:[\s.,]|$)/,                    "chatzilla-italic");    /* allow () chars inside |code()| blocks */    munger.addRule ("teletype", /(?:\s|^)(\|[^|]*\|)(?:[\s.,]|$)/,                    "chatzilla-teletype");    munger.addRule (".mirc-colors", /(\x03((\d{1,2})(,\d{1,2}|)|))/,                    mircChangeColor);    munger.addRule (".mirc-bold", /(\x02)/, mircToggleBold);    munger.addRule (".mirc-underline", /(\x1f)/, mircToggleUnder);    munger.addRule (".mirc-color-reset", /(\x0f)/, mircResetColor);    munger.addRule (".mirc-reverse", /(\x16)/, mircReverseColor);    munger.addRule ("ctrl-char", /([\x01-\x1f])/, showCtrlChar);    munger.addRule ("link", client.linkRE, insertLink);    munger.addRule (".mailto",       /(?:\s|\W|^)((mailto:)?[^<>\[\]()\'\"\s\u201d]+@[^.<>\[\]()\'\"\s\u201d]+\.[^<>\[\]()\'\"\s\u201d]+)/i,                    insertMailToLink, false);    munger.addRule ("bugzilla-link",                    /(?:\s|\W|^)(bug\s+(?:#?\d{3,6}|#[^\s,]{1,20}))/i,                    insertBugzillaLink);    munger.addRule ("channel-link",                /(?:\s|\W|^)[@+]?(#[^<>\[\](){}\"\s\u201d]*[^:,.<>\[\](){}\'\"\s\u201d])/i,                    insertChannelLink);    munger.addRule("talkback-link", /(?:\W|^)(TB\d{8,}[A-Z]?)(?:\W|$)/,                   insertTalkbackLink);        munger.addRule ("face",         /((^|\s)(?:[>]?[B8=:;(xX][~']?[-^v"]?(?:[)|(PpSs0oO\?\[\]\/\\]|D+)|>[-^v]?\)|[oO9][._][oO9])(\s|$))/,         insertSmiley);    munger.addRule ("rheet", /(?:\s|\W|^)(rhee+t\!*)(?:\s|$)/i, insertRheet);    munger.addRule ("word-hyphenator",                    new RegExp ("(\\S{" + client.MAX_WORD_DISPLAY + ",})"),                    insertHyphenatedWord);    client.enableColors = client.prefs["munger.colorCodes"];    for (var entry in client.munger.entries)    {        var branch = client.prefManager.prefBranch;        if (entry[0] != ".")        {            try            {                munger.entries[entry].enabled =                     branch.getBoolPref("munger." + entry);            }            catch (ex)            {                // nada            }        }    }}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/4dd3cfd5e21f2d1ce5b174a75321e4671b4a08e6/munger.js/buggy/extensions/irc/xul/lib/munger.js