CoreFiles by mySites.guru
PrefixRule.php36 lines, 739 bytes, from Joomla_4.2.0-Stable-Full_Package.zip
Raw History Compare with 4.1.5
md5
370a08227bafe53c6e74c42ecc5b858c
sha1
47d23506bdc2cdc6aa7080c617e9c42ba8ea2966
sha256
bbd2509201691f51dde9ca9d00d770c1b52fe4e98131e39f623989e516b1302f
<?php

/**
 * @package    Joomla.Installation
 *
 * @copyright  (C) 2011 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Installation\Form\Rule;

use Joomla\CMS\Form\FormRule;

/**
 * Form Rule class for the prefix DB.
 *
 * @since  1.7
 */
class PrefixRule extends FormRule
{
    /**
     * The regular expression to use in testing a form field value.
     *
     * @var    string
     * @since  1.7
     */
    protected $regex = '^[a-z][a-z0-9]*_$';

    /**
     * The regular expression modifiers to use when testing a form field value.
     *
     * @var    string
     * @since  1.7
     */
    protected $modifiers = 'i';
}

The same content is in 5 releases, Joomla 4.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.