Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#1329 closed defect (no action needed)

[SmartReplace] replacement strings broken in compressed code broken

Reported by: ray Owned by: gogo
Priority: normal Milestone: 0.96
Component: Plugins Version: trunk
Severity: normal Keywords:
Cc:

Description

looks like

if(_e==32){
return this.smartReplace(ev,2,/^\s-/," \ufffd\ufffd\ufffd",false);
}
if(_f=="."){
return this.smartReplace(ev,2,/\.\./,"\ufffd\ufffd\ufffd",true);
}

instead of

	if (charCode == 32) //space bar
	{
		return this.smartReplace(ev, 2, /^\s-/, ' –', false); // space-space -> dash 
	}
	if ( key == '.' ) // ... -> ellipsis
	{
		return this.smartReplace(ev, 2, /\.\./, '…', true);
	}

Change History (3)

comment:1 Changed 11 years ago by ray

  • Resolution set to no action needed
  • Status changed from new to closed

I don't know how and why this happened in 0.95, but I just tested compressing SmartQuotes?.js without this error

comment:2 Changed 11 years ago by ray

rev [1140]: replaced the unicode characters to prevent breaking

comment:3 Changed 11 years ago by ray

  • Component changed from Xinha Core to Plugins
Note: See TracTickets for help on using tickets.