Translate extension for MediaWiki
Loading...
Searching...
No Matches
InsertableRubyVariableValidator.php
1
<?php
2
declare( strict_types = 1 );
3
4
namespace
MediaWiki\Extension\Translate\Validation\Validators;
5
12
class
InsertableRubyVariableValidator
extends
InsertableRegexValidator
{
13
public
function
__construct() {
14
parent::__construct(
'/%{[a-zA-Z_]+}/'
);
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\InsertableRubyVariableValidator
An insertable Ruby variable validator that also acts as an InsertableSuggester.
Definition
InsertableRubyVariableValidator.php:12
src
Validation
Validators
InsertableRubyVariableValidator.php
Generated by
1.10.0