]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Nickname class to encapsulate validation & common regexes for nickname formats.
authorBrion Vibber <brion@pobox.com>
Mon, 29 Nov 2010 22:46:10 +0000 (14:46 -0800)
committerBrion Vibber <brion@pobox.com>
Mon, 29 Nov 2010 22:46:10 +0000 (14:46 -0800)
commitfffc10a23084f1bb4b47de926dc1034c8f9ee9b8
treedb0f2bb08f58820c877a5949e08ff2805fb98296
parentdc350b5463e7d64a46d7f90143c2d001be99e280
Nickname class to encapsulate validation & common regexes for nickname formats.
This provides initial infrastructure for decoupling display names from internal canonical names, but continues to have us storing and using the canonical forms.

It should be/become possible to provide mixed-case and underscore-containing names in links, @-mention, !-group, etc, but we don't store those alternate forms generally.
lib/nickname.php [new file with mode: 0644]
tests/NicknameTest.php