blob: 84bbf0e349494cac0732db774bf50cce3df3f42f (
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 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+/' );
}
}
class_alias( NumericalParameterValidator::class, '\MediaWiki\Extensions\Translate\NumericalParameterValidator' );
|