Skip to content

Commit f532177

Browse files
vranadg
authored andcommitted
Strings::trim() trims Line Separator and Ideographic Space (#326)
These characters occur in our data. There are more characters listed at https://en.wikipedia.org/wiki/Whitespace_character#Unicode, maybe all of them should be included?
1 parent 828585a commit f532177

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils/Strings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Strings
2121
{
2222
use Nette\StaticClass;
2323

24-
public const TrimCharacters = " \t\n\r\0\x0B\u{A0}\u{2000}\u{2001}\u{2002}\u{2003}\u{2004}\u{2005}\u{2006}\u{2007}\u{2008}\u{2009}\u{200A}\u{200B}";
24+
public const TrimCharacters = " \t\n\r\0\x0B\u{A0}\u{2000}\u{2001}\u{2002}\u{2003}\u{2004}\u{2005}\u{2006}\u{2007}\u{2008}\u{2009}\u{200A}\u{200B}\u{2028}\u{3000}";
2525

2626
/** @deprecated use Strings::TrimCharacters */
2727
public const TRIM_CHARACTERS = self::TrimCharacters;

0 commit comments

Comments
 (0)