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

namespace MediaWiki\Extension\Translate\Validation\Validators;

/**
 * An insertable numerical parameter validator that also acts as an InsertableSuggester
 * @license GPL-2.0-or-later
 * @since 2020.03
 */
class NumericalParameterValidator extends InsertableRegexValidator {
	public function __construct() {
		parent::__construct( '/\$\d+/' );
	}
}