r1574 - branches/bxe_2_0/js
[email protected] Tue, 24 Oct 2006 18:01:57 +0200 (CEST)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Tue Oct 24 18:01:57 2006
New Revision: 1574
Modified:
branches/bxe_2_0/js/bxeFunctions.js
Log:
fix stripspace
Modified: branches/bxe_2_0/js/bxeFunctions.js
==============================================================================
--- branches/bxe_2_0/js/bxeFunctions.js (original)
+++ branches/bxe_2_0/js/bxeFunctions.js Tue Oct 24 18:01:57 2006
@@ -2113,7 +2113,11 @@
}
String.prototype.strip = function() {
var stripspace = /^\s*((\S+\s*\S+)*)\s*$/;
- return stripspace.exec(this)[1];
+ try {
+ return stripspace.exec(this)[1];
+ } catch(e) {
+ return this;
+ }
};
String.prototype.convertToXML = function() {
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs