->label('wcf.acp.pip.mediaProvider.name')
->description('wcf.acp.pip.mediaProvider.name.description')
->addValidator(new FormFieldValidator('format', function(TextFormField $formField) {
- if (!preg_match('~^[a-z][A-z]+$~', $formField->getSaveValue())) {
+ if (!preg_match('~^[a-z][A-z0-9-]+$~', $formField->getSaveValue())) {
$formField->addValidationError(
new FormFieldValidationError(
'format',
<item name="wcf.acp.pip.acpSearchProvider.showOrder"><![CDATA[Position]]></item>
<item name="wcf.acp.pip.acpSearchProvider.showOrder.description"><![CDATA[The entered value determines in which order the different types of search results are shown.]]></item>
<item name="wcf.acp.pip.mediaProvider.name"><![CDATA[Provider Name]]></item>
- <item name="wcf.acp.pip.mediaProvider.name.description"><![CDATA[The name of the media provider may only contain letters and must begin with a lowercase letter.]]></item>
+ <item name="wcf.acp.pip.mediaProvider.name.description"><![CDATA[The name of the media provider may only contain letters, numbers and dashes and must begin with a lowercase letter.]]></item>
<item name="wcf.acp.pip.mediaProvider.name.error.format"><![CDATA[The entered name is invalid.]]></item>
<item name="wcf.acp.pip.mediaProvider.regex"><![CDATA[Regular Expressions]]></item>
<item name="wcf.acp.pip.mediaProvider.regex.description"><![CDATA[The entered regular expressions (without delimiters) are used to check if this media provider is responsible for a given link. Each line is treated as its own regular expression.]]></item>