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