Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5973947
PythonInterpolationValidator.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
451 B
Referenced Files
None
Subscribers
None
PythonInterpolationValidator.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Extension\Translate\Validation\Validators
;
/**
* An insertable python interpolation validator that also acts as an InsertableSuggester
* @author Abijeet Patro
* @license GPL-2.0-or-later
* @since 2020.02
*/
class
PythonInterpolationValidator
extends
InsertableRegexValidator
{
public
function
__construct
()
{
parent
::
__construct
(
'/
\%
(?:
\(
[a-zA-Z0-9_]*?
\)
)?[diouxXeEfFgGcrs]/U'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 16:58 (18 h, 28 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0b/a6/45600fe3d68bf815fe1cee11ab07
Default Alt Text
PythonInterpolationValidator.php (451 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment