Changeset 5544

Show
Ignore:
Timestamp:
02/14/08 11:42:11 (9 months ago)
Author:
uta
Message:

2604

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinelz/trunk/compress/javascripts/spinelz_lib/spinelz_util.js

    r5540 r5544  
    224224this.splice(_48,1); 
    225225}}); 
    226 Object.extend(String.prototype,{_mb_space:decodeURIComponent("%E3%80%80"),_rf:new RegExp("^["+this._mb_space+"]+","gmi"),_rb:new RegExp("["+this._mb_space+"]+$","gmi"),appendPrefix:function(_49,_4a){ 
     226Object.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){ 
    227227if(!_4a){ 
    228228_4a="_"; 
     
    251251return this.gsub(this._mb_space," "); 
    252252},stripMB:function(){ 
    253 return this.strip().replace(this._rf,"").replace(this._rb,""); 
     253return this.strip().gsub(this._rf,"").gsub(this._rb,""); 
    254254},toElement:function(){ 
    255255var _4f=document.createElement("div"); 
  • spinelz/trunk/compress/javascripts/spinelz_lib/spinelz_util_for_rubricks.js

    r5540 r5544  
    48904890this.splice(_48,1); 
    48914891}}); 
    4892 Object.extend(String.prototype,{_mb_space:decodeURIComponent("%E3%80%80"),_rf:new RegExp("^["+this._mb_space+"]+","gmi"),_rb:new RegExp("["+this._mb_space+"]+$","gmi"),appendPrefix:function(_49,_4a){ 
     4892Object.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){ 
    48934893if(!_4a){ 
    48944894_4a="_"; 
     
    49174917return this.gsub(this._mb_space," "); 
    49184918},stripMB:function(){ 
    4919 return this.strip().replace(this._rf,"").replace(this._rb,""); 
     4919return this.strip().gsub(this._rf,"").gsub(this._rb,""); 
    49204920},toElement:function(){ 
    49214921var _4f=document.createElement("div"); 
  • spinelz/trunk/src/javascripts/spinelz_lib/spinelz_util.js

    r5540 r5544  
    301301Object.extend(String.prototype, { 
    302302  _mb_space: decodeURIComponent("%E3%80%80"), 
    303   _rf: new RegExp('^[' + this._mb_space + ']+', 'gmi'), 
    304   _rb: new RegExp('[' + this._mb_space + ']+$', 'gmi'), 
     303  _rb: new RegExp(decodeURIComponent("[%E3%80%80]+$"), 'gmi'), 
     304  _rf: new RegExp(decodeURIComponent("^[%E3%80%80]+"), 'gmi'), 
    305305  appendPrefix: function(prefix, delimiter) { 
    306306    if (!delimiter) delimiter = '_'; 
     
    336336 
    337337  stripMB: function() { 
    338     return this.strip().replace(this._rf, '').replace(this._rb, ''); 
     338    return this.strip().gsub(this._rf, '').gsub(this._rb, ''); 
    339339  }, 
    340340