Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F71892080
PhabricatorRegexListConfigType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jul 13, 15:09
Size
574 B
Mime Type
text/x-php
Expires
Mon, Jul 15, 15:09 (2 d)
Engine
blob
Format
Raw Data
Handle
19013397
Attached To
rPH Phabricator
PhabricatorRegexListConfigType.php
View Options
<?php
final
class
PhabricatorRegexListConfigType
extends
PhabricatorTextListConfigType
{
const
TYPEKEY
=
'list<regex>'
;
protected
function
validateStoredItem
(
PhabricatorConfigOption
$option
,
$value
)
{
$ok
=
@
preg_match
(
$value
,
''
);
if
(
$ok
===
false
)
{
throw
$this
->
newException
(
pht
(
'Option "%s" is of type "%s" and must be set to a list of valid '
.
'regular expressions, but "%s" is not a valid regular expression.'
,
$option
->
getKey
(),
$this
->
getTypeKey
(),
$value
));
}
}
}
Event Timeline
Log In to Comment