rem: cached.content = cached.content.replace(closes_re, rewrite_closes_fn); 
add: var new_content = cached.content.replace(closes_re, rewrite_closes_fn); if (cached.content_type == 'text/plain') { cached.content = '<pre>' + new_content + '</pre>'; vs.plain = "0"; } else { cached.content = new_content; }  
context: function mangle_deb_bugnumbers(cached, vs) {	if (!cached.uri.match(/^[a-z0-9]+:\/\/[a-z0-9A-Z.-]+debian\.org/)	    && !cached.uri.match(/changelog\.Debian/))		return true;	var num_re = /([0-9]+)/g;	var rewrite_closes_fn = function (str) {		return str.replace(num_re,		                 '<a href="http://bugs.debian.org/$1">$1</a>');	}	/* Debian Policy Manual 4.4 footnote 16 */	var closes_re = /closes:\s*(?:bug)?\#?\s?\d+(?:,\s*(?:bug)?\#?\s?\d+)*/gi;	cached.content = cached.content.replace(closes_re, rewrite_closes_fn);	return true;}
meta: 2130	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2130/2e9d433402d44eafa1630e10760b2635a5d6072b/hooks.js/buggy/contrib/smjs/hooks.js