mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- code review;
- changed readme;
This commit is contained in:
@@ -285,7 +285,7 @@ if ( ! class_exists( 'um\core\Validation' ) ) {
|
||||
|
||||
|
||||
/**
|
||||
* Is Discord ID
|
||||
* Is Discord ID?
|
||||
*
|
||||
* @param $string
|
||||
*
|
||||
@@ -298,7 +298,7 @@ if ( ! class_exists( 'um\core\Validation' ) ) {
|
||||
if ( substr_count( $string, '#' ) > 1 ) {
|
||||
return false;
|
||||
}
|
||||
if ( ! preg_match( '/(\S+)#(\d+)$/', trim( $string ) ) ) {
|
||||
if ( ! preg_match( '/^(.+)#(\d+)$/', trim( $string ) ) ) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@@ -417,4 +417,4 @@ if ( ! class_exists( 'um\core\Validation' ) ) {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user