aboutsummaryrefslogtreecommitdiffstats
path: root/util/jid.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.jid: Explicitly check for nil rather than falsyKim Alvefur2022-01-151-14/+14
| | | | A boolean false should blow up.
* util.jid: Fix special escaping of '\' per XEP-0106Kim Alvefur2020-08-281-2/+6
| | | | | | | | | | | | From XEP-0106 §2. Requirements: > in certain circumstances, the escaping character itself ("\") might > also be escaped Later in §4.2 Address Transformation Algorithm it is stated that the backslash would only be escaped if it forms an escape sequence. Thus '\foo' is unaltered but '\20' must be escaped into '\5c20'. Thanks to lovetox and jonas’ for brining up.
* util.jid: Add a 'strict' flag for jidprep callsKim Alvefur2019-09-091-6/+6
|
* util.jid: Add missing semicolonKim Alvefur2018-09-211-1/+1
|
* vairious: Add annotation when an empty environment is set [luacheck]Kim Alvefur2018-02-281-0/+1
|
* mod_carbons: Make the conditions for ignoring MUC PMs more specific (fixes #744)Kim Alvefur2016-09-231-1/+1
|
* util.jid: Import select() into local (fixes traceback, tests on Lua 5.2)Kim Alvefur2016-03-281-0/+1
|
* util.jid+tests: Add simple helpers... node(), host() and resource() for ↵Matthew Wild2016-03-171-0/+15
| | | | extracting specific parts of a JID
* util.jid: Fix backoutKim Alvefur2015-10-021-1/+1
|
* Backout 7e820979fd9b (broke tests)Kim Alvefur2015-10-021-1/+5
|
* util.*: Remove use of module() function, make all module functions local and ↵Kim Alvefur2015-02-211-18/+24
| | | | return them in a table at the end
* util.jid: Optimize bareKim Alvefur2014-08-071-5/+1
|
* util.jid: Use existing join function in jid.prepKim Alvefur2014-08-071-15/+8
|
* util.jid: Return early in join on invalid jidsKim Alvefur2014-08-071-6/+5
|
* Merge 0.9->0.10Matthew Wild2013-12-161-1/+4
|\
| * util.jid: Strip trailing '.' when normalizing hostnamesMatthew Wild2013-12-161-1/+4
| |
* | Remove all trailing whitespaceFlorian Zeitz2013-08-091-1/+1
|/
* util.jid: Added escape() and unescape().Waqas Hussain2011-11-011-0/+13
|
* util.jid: Fix parsing of JIDs with no nodepart and an @ in the resourcepart ↵Matthew Wild2010-08-311-1/+1
| | | | (thanks seth)
* util.jid: compare() added, with some tests.Kim Alvefur2010-07-161-0/+13
|
* Update copyright headers for 2010Matthew Wild2010-03-221-2/+2
|
* util.jid: Add join(node, host, resource) function to join the components and ↵Matthew Wild2009-11-271-0/+13
| | | | return nil if invalid
* Remove version number from copyright headersMatthew Wild2009-07-101-1/+1
|
* util.jid: Eliminate global method useWaqas Hussain2009-05-161-5/+7
|
* 0.3->0.4Matthew Wild2009-03-201-1/+1
|
* Update copyright notices for 2009Matthew Wild2009-01-301-2/+2
|
* 0.2->0.3Matthew Wild2009-01-301-1/+1
|
* GPL->MIT!Matthew Wild2009-01-301-13/+2
|
* util/jid: string prepping functions added: prepped_split and prepWaqas Hussain2009-01-151-0/+33
|
* 0.1 -> 0.2Matthew Wild2008-12-101-1/+1
|
* Insert copyright/license headersMatthew Wild2008-12-031-0/+20
|
* Removed useless checkWaqas Hussain2008-11-221-3/+1
|
* Better names for variablesMatthew Wild2008-11-211-4/+4
|
* Remove old TODOMatthew Wild2008-11-211-1/+0
|
* Remove some declarations I added while debuggingMatthew Wild2008-11-211-2/+1
|
* Improve jid.split() and jid.bare() to pass new test cases with invalid JIDsMatthew Wild2008-11-211-7/+15
|
* Add jid.bare() helper functionMatthew Wild2008-11-201-0/+5
|
* Minor edit, and added a TODOWaqas Hussain2008-10-221-1/+2
|
* Fixed: util/jid.lua now returns module objectWaqas Hussain2008-10-141-0/+2
|
* jid.split(): Return nil when passed nilMatthew Wild2008-09-301-0/+1
|
* Fixing jid.split() for all JIDsMatthew Wild2008-09-271-1/+4
|
* Added all the files to please hg :/matthew2008-08-241-0/+8