![]() |
RegEx Case Sensitivity
Version 4.1.10
Options > User Registration Options > Username Regular Expression ^[A-Z][A-Za-z]+\.[A-Z][A-Za-z-]+$ I'm trying to force Firstname.Lastname or Firstname-Lastname-Lastname with the first letter being forced to a capital letter. But it seems as if the code autimacially puts the lower case i at the end of the preg_match string to ignore case. How can I remove the "i" from the preg_match code so I can force case sensitivity? |
In includes/class_dm.php, function verify_username() around line 456 is this:
Code:
// check for regex compliance I think that's where you'd want to remove it. Another approach might be to use a plugin on the registration page to change the username that's entered, or even build it from first name/last name fields. |
Quote:
Note: The file name was includes/class_dm_user.php Thanks for your help! |
Quote:
Oops...sorry about that. It's actually in both of those files, but I don't know when the one in class_dm.php would be used. |
All times are GMT. The time now is 04:59 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|