Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5991524
IosVariableValidator.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
641 B
Referenced Files
None
Subscribers
None
IosVariableValidator.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Extension\Translate\Validation\Validators
;
// phpcs:disable Generic.Files.LineLength.TooLong
/**
* An insertable IOS variable validator.
* See: https://github.com/dcordero/Rubustrings/blob/61d477bffbb318ca3ffed9c2afc49ec301931d93/lib/rubustrings/action.rb#L91
* @author Abijeet Patro
* @license GPL-2.0-or-later
* @since 2020.03
*/
class
IosVariableValidator
extends
InsertableRegexValidator
{
public
function
__construct
()
{
parent
::
__construct
(
"/%(?:([1-9]
\d
*)
\$
|
\(
([^
\)
]+)
\)
)?(
\+
)?(0|
\'
[^$])?"
.
"(-)?(
\d
+)?(?:
\.
(
\d
+))?(hh|ll|[hlLzjt])?([b-fiosuxX@])/"
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Oct 4, 01:55 (4 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ed/a1/598cd516159468b5c2c37ab4c7eb
Default Alt Text
IosVariableValidator.php (641 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment