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