undo previous rev

This commit is contained in:
Simon Kornblith 2008-03-24 20:03:13 +00:00
parent 027a287deb
commit ddd3f815a8

View File

@ -131,8 +131,8 @@ Zotero.Utilities.prototype.superCleanString = function(x) {
throw "superCleanString: argument must be a string";
}
var x = x.replace(/^[\x00-\x27\x29-\2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/, "");
return x.replace(/[\x00-\x28\x2A-\2F\x3A-\x40\x5B-\x60\x7B-\x7F]+$/, "");
var x = x.replace(/^[^\w(]+/, "");
return x.replace(/[^\w)]+$/, "");
}
/*