Translate extension for MediaWiki
Loading...
Searching...
No Matches
PythonInterpolationValidator.php
1
<?php
2
declare( strict_types = 1 );
3
4
namespace
MediaWiki\Extension\Translate\Validation\Validators;
5
12
class
PythonInterpolationValidator
extends
InsertableRegexValidator
{
13
public
function
__construct() {
14
parent::__construct(
'/\%(?:\([a-zA-Z0-9_]*?\))?[diouxXeEfFgGcrs]/U'
);
15
}
16
}
MediaWiki\Extension\Translate\Validation\Validators\InsertableRegexValidator
A generic regex validator and insertable that can be reused by other classes.
Definition
InsertableRegexValidator.php:19
MediaWiki\Extension\Translate\Validation\Validators\PythonInterpolationValidator
An insertable python interpolation validator that also acts as an InsertableSuggester.
Definition
PythonInterpolationValidator.php:12
src
Validation
Validators
PythonInterpolationValidator.php
Generated by
1.10.0