blob: ca9a98e37a57ba24b5103df3fe8d8957b6d648af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
declare( strict_types = 1 );
namespace MediaWiki\Extension\Translate\Validation\Validators;
/**
* An insertable python interpolation validator that also acts as an InsertableSuggester
* @author Abijeet Patro
* @license GPL-2.0-or-later
* @since 2020.02
*/
class PythonInterpolationValidator extends InsertableRegexValidator {
public function __construct() {
parent::__construct( '/\%(?:\([a-zA-Z0-9_]*?\))?[diouxXeEfFgGcrs]/U' );
}
}
class_alias( PythonInterpolationValidator::class, '\MediaWiki\Extensions\Translate\PythonInterpolationValidator' );
|