Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
IosVariableValidator.php
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\Validation\Validators;
5
6// phpcs:disable Generic.Files.LineLength.TooLong
15 public function __construct() {
16 parent::__construct(
17 "/%(?:([1-9]\d*)\$|\‍(([^\‍)]+)\‍))?(\+)?(0|\'[^$])?" .
18 "(-)?(\d+)?(?:\.(\d+))?(hh|ll|[hlLzjt])?([b-fiosuxX@])/"
19 );
20 }
21}
A generic regex validator and insertable that can be reused by other classes.