wikimedia/mediawiki-extensions-Translate

View on GitHub
src/Validation/Validators/NumericalParameterValidator.php

Summary

Maintainability
A
0 mins
Test Coverage
<?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+/' );
    }
}