Fix JID validation bugs, add lots of tests.

This commit is contained in:
Lance Stout
2012-07-23 21:45:24 -07:00
parent 78aa5c3dfa
commit 352ee2f2fd
4 changed files with 160 additions and 8 deletions

View File

@@ -77,6 +77,9 @@ def check_bidi(data):
character MUST be the first character of the string, and a
RandALCat character MUST be the last character of the string.
"""
if not data:
return data
has_lcat = False
has_randal = False