﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2728	String.prototype.Trim should also trim unicode ideographic space	thiloplanz		"String.prototype.Trim (defined in fckjscoreextensions.js) should also remove the Unicode ""Ideographic Space"" (U+3000), which is used in Japanese.

{{{
#!js
String.prototype.Trim = function()
{
	// We are not using \s because we don't want ""non-breaking spaces to be caught"".
	return this.replace( /(^[ \t\n\r\u3000]*)|([ \t\n\r\u3000]*$)/g, '' ) ;
}

String.prototype.LTrim = function()
{
	// We are not using \s because we don't want ""non-breaking spaces to be caught"".
	return this.replace( /^[ \t\n\r\u3000]*/g, '' ) ;
}

String.prototype.RTrim = function()
{
	// We are not using \s because we don't want ""non-breaking spaces to be caught"".
	return this.replace( /[ \t\n\r\u3000]*$/g, '' ) ;
}
}}}"	Bug	confirmed	Normal		General				
