Translate extension for MediaWiki
Loading...
Searching...
No Matches
FluentVariableValidator.php
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\Validation\Validators;
5
19 public function __construct() {
20 parent::__construct( '/\{\s*\$([a-zA-Z][a-zA-Z0-9_-]*)\s*\}/' );
21 }
22}
A generic regex validator and insertable that can be reused by other classes.