blob: 990cf31901dc417ab880aa7c3c2dc0d406ceb61f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?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' );
}
}
|