diff options
author | uckelman <uckelman@nomic.net> | 2010-07-27 20:47:16 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-07-27 20:47:16 +0000 |
commit | b3481ffa2097b304291c13cabd00b229695f643c (patch) | |
tree | a83850596d19de2a37d13b5640a672392038744a | |
parent | 6e65556ce0dbecb7584fcbc3f927017bd92264e2 (diff) |
Added is_ascii().
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@7041 67b53d14-2c14-4ace-a08f-0dab2b34000c
-rw-r--r-- | src/Util.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Util.php b/src/Util.php index 38aec11..c11263e 100644 --- a/src/Util.php +++ b/src/Util.php @@ -8,11 +8,9 @@ function build_message_id($postId, $editId, $time, $forumHost) { return "<$time.$postId.$editId.bridge@$forumHost>"; } -/* function is_ascii($string) { - return !preg_match('/[^\x00-\x7F]/S', $str); + return !preg_match('/[^[:ascii:]]/', $str); } -*/ function utf8_quote($string) { return '=?UTF-8?B?' . base64_encode($string) . '?='; |