CC-3639: Preferences-> Fade In is interpreted improperly (it is insanely high)
- the regular exp check in model class was wrong
This commit is contained in:
parent
ef908ee894
commit
1bb04296a9
4 changed files with 6 additions and 7 deletions
|
@ -46,7 +46,7 @@ class CcPlaylistcontents extends BaseCcPlaylistcontents {
|
|||
if ($v instanceof DateTime) {
|
||||
$dt = $v;
|
||||
}
|
||||
else if (preg_match('/^[0-5][0-9](\.\d{1,6})?$/', $v)) {
|
||||
else if (preg_match('/^[0-9]{1,2}(\.\d{1,6})?$/', $v)) {
|
||||
$dt = DateTime::createFromFormat("s.u", $v);
|
||||
}
|
||||
else {
|
||||
|
@ -74,7 +74,7 @@ class CcPlaylistcontents extends BaseCcPlaylistcontents {
|
|||
if ($v instanceof DateTime) {
|
||||
$dt = $v;
|
||||
}
|
||||
else if (preg_match('/^[0-5][0-9](\.\d{1,6})?$/', $v)) {
|
||||
else if (preg_match('/^[0-9]{1,2}(\.\d{1,6})?$/', $v)) {
|
||||
$dt = DateTime::createFromFormat("s.u", $v);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue