Changeset 5544
- Timestamp:
- 02/14/08 11:42:11 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spinelz/trunk/compress/javascripts/spinelz_lib/spinelz_util.js
r5540 r5544 224 224 this.splice(_48,1); 225 225 }}); 226 Object.extend(String.prototype,{_mb_space:decodeURIComponent("%E3%80%80"),_r f:new RegExp("^["+this._mb_space+"]+","gmi"),_rb:new RegExp("["+this._mb_space+"]+$","gmi"),appendPrefix:function(_49,_4a){226 Object.extend(String.prototype,{_mb_space:decodeURIComponent("%E3%80%80"),_rb:new RegExp(decodeURIComponent("[%E3%80%80]+$"),"gmi"),_rf:new RegExp(decodeURIComponent("^[%E3%80%80]+"),"gmi"),appendPrefix:function(_49,_4a){ 227 227 if(!_4a){ 228 228 _4a="_"; … … 251 251 return this.gsub(this._mb_space," "); 252 252 },stripMB:function(){ 253 return this.strip(). replace(this._rf,"").replace(this._rb,"");253 return this.strip().gsub(this._rf,"").gsub(this._rb,""); 254 254 },toElement:function(){ 255 255 var _4f=document.createElement("div"); spinelz/trunk/compress/javascripts/spinelz_lib/spinelz_util_for_rubricks.js
r5540 r5544 4890 4890 this.splice(_48,1); 4891 4891 }}); 4892 Object.extend(String.prototype,{_mb_space:decodeURIComponent("%E3%80%80"),_r f:new RegExp("^["+this._mb_space+"]+","gmi"),_rb:new RegExp("["+this._mb_space+"]+$","gmi"),appendPrefix:function(_49,_4a){4892 Object.extend(String.prototype,{_mb_space:decodeURIComponent("%E3%80%80"),_rb:new RegExp(decodeURIComponent("[%E3%80%80]+$"),"gmi"),_rf:new RegExp(decodeURIComponent("^[%E3%80%80]+"),"gmi"),appendPrefix:function(_49,_4a){ 4893 4893 if(!_4a){ 4894 4894 _4a="_"; … … 4917 4917 return this.gsub(this._mb_space," "); 4918 4918 },stripMB:function(){ 4919 return this.strip(). replace(this._rf,"").replace(this._rb,"");4919 return this.strip().gsub(this._rf,"").gsub(this._rb,""); 4920 4920 },toElement:function(){ 4921 4921 var _4f=document.createElement("div"); spinelz/trunk/src/javascripts/spinelz_lib/spinelz_util.js
r5540 r5544 301 301 Object.extend(String.prototype, { 302 302 _mb_space: decodeURIComponent("%E3%80%80"), 303 _r f: new RegExp('^[' + this._mb_space + ']+', 'gmi'),304 _r b: new RegExp('[' + this._mb_space + ']+$', 'gmi'),303 _rb: new RegExp(decodeURIComponent("[%E3%80%80]+$"), 'gmi'), 304 _rf: new RegExp(decodeURIComponent("^[%E3%80%80]+"), 'gmi'), 305 305 appendPrefix: function(prefix, delimiter) { 306 306 if (!delimiter) delimiter = '_'; … … 336 336 337 337 stripMB: function() { 338 return this.strip(). replace(this._rf, '').replace(this._rb, '');338 return this.strip().gsub(this._rf, '').gsub(this._rb, ''); 339 339 }, 340 340
