From c578c639527fad98ae60676ea58860809462d4dc Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 4 Feb 2012 17:08:05 -0500 Subject: Fixes #1853 matching UTF8 characters in usernames --- mod/thewire/tests/regex.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mod/thewire/tests/regex.php') diff --git a/mod/thewire/tests/regex.php b/mod/thewire/tests/regex.php index f5487a422..c73e06bdc 100644 --- a/mod/thewire/tests/regex.php +++ b/mod/thewire/tests/regex.php @@ -127,6 +127,12 @@ class TheWireRegexTest extends ElggCoreUnitTest { $expected = "test (" . $this->getUserWireLink('user') . ") test"; $result = thewire_filter($text); $this->assertEqual($result, $expected); + + // utf8 characters + $text = "@tyúkanyó"; + $expected = $this->getUserWireLink('tyúkanyó'); + $result = thewire_filter($text); + $this->assertEqual($result, $expected); } /** -- cgit v1.2.3