CoreFiles by mySites.guru
PrefixRule.php37 lines, 740 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
dda1c05a3907c324b9440c2448bbb2b1
sha1
737e692fb1184eb84a2f2c525c3f998fb606f74d
sha256
dcb246f4fa47ef3a93885bef0dab1bcd6366b1dbb6f4552c950d764465f1e028
<?php
/**
 * @package    Joomla.Installation
 *
 * @copyright  Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Installation\Form\Rule;

defined('JPATH_BASE') or die;

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 3 releases, Joomla 4.0.0-alpha3 to 4.0.0-alpha6. See them all, or every version of this file.