Factor out changetag name validation check
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 17 Mar 2015 12:46:40 +0000 (08:46 -0400)
committerMatthew Flaschen <mflaschen@wikimedia.org>
Wed, 10 May 2017 23:13:22 +0000 (19:13 -0400)
commiteedff9490901741a496cb66b3e42dc68bffb69c2
treec839cb3232f762f6827f18262d764b38f5d5f9fe
parent79ae60f0e67797ee0ff898885dbd0f0822783efd
Factor out changetag name validation check

This way it can be called by AbuseFilter without also getting caught in
the "already exists" checks. And possibly it could also be used in the
future to validate input passed to ChangeTags::addTags()

Bug: T92956
Change-Id: Ic5d754323cbfd2c2b54c4df1245767946ebb1821
includes/changetags/ChangeTags.php