X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;ds=sidebyside;f=chrome%2Fcontent%2Ficedeb.js;h=a6d00da93020599b903f7f0d38e7359d6c595cbc;hb=0acd8e09107de436334c888c9b5f3d1a2f76dbd6;hp=e6c7adbcc2f0b3d4d487cb5ff04a607c5701e20b;hpb=9c0f9450341bf66a1c317322527427a7b834ae28;p=icedeb.git diff --git a/chrome/content/icedeb.js b/chrome/content/icedeb.js index e6c7adb..a6d00da 100644 --- a/chrome/content/icedeb.js +++ b/chrome/content/icedeb.js @@ -8,6 +8,9 @@ IceDeb = { .createInstance(Components.interfaces.nsITransferable); if (!trans) return null; + if (typeof(trans.init) === 'function') + trans.init(null); + trans.addDataFlavor("text/unicode"); clip.getData(trans, clip.supportsSelectionClipboard() @@ -39,6 +42,7 @@ IceDeb = { word = word.replace(/^[^a-zA-Z0-9]+/, ''); word = word.replace(/[^a-zA-Z0-9]+$/, ''); + word = word.replace(/^Bug#/i, ''); } while ( oldword != word ); return word;