mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- fixed discord field validation
This commit is contained in:
@@ -295,7 +295,10 @@ if ( ! class_exists( 'um\core\Validation' ) ) {
|
||||
if ( ! $string ) {
|
||||
return true;
|
||||
}
|
||||
if ( ! preg_match( '/(^\S+)#(\d+)$/', trim( $string ) ) ) {
|
||||
if ( substr_count( $string, '#' ) > 1 ) {
|
||||
return false;
|
||||
}
|
||||
if ( ! preg_match( '/(\S+)#(\d+)$/', trim( $string ) ) ) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user