summaryrefslogtreecommitdiff
blob: 5c953b4c1f9020a295d1cb2eec229ac31da0c1dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
declare( strict_types = 1 );

namespace MediaWiki\Extension\Translate\Validation\Validators;

/**
 * An insertable wiki parameter validator that also acts as an InsertableSuggester
 * @license GPL-2.0-or-later
 * @since 2019.12
 */
class MediaWikiParameterValidator extends InsertableRegexValidator {
	public function __construct() {
		parent::__construct( '/\$[1-9]/' );
	}
}

class_alias( MediaWikiParameterValidator::class, '\MediaWiki\Extensions\Translate\MediaWikiParameterValidator' );