File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3333
3434} ( ) ) ;
3535
36- jQuery . validator . addMethod ( "time" , function ( value , element ) {
37- return this . optional ( element ) || / ^ ( [ 0 1 ] \d | 2 [ 0 - 3 ] ) ( : [ 0 - 5 ] \d ) { 1 , 2 } $ / . test ( value ) ;
38- } , "Please enter a valid time, between 00:00 and 23:59" ) ;
3936jQuery . validator . addMethod ( "time12h" , function ( value , element ) {
4037 return this . optional ( element ) || / ^ ( ( 0 ? [ 1 - 9 ] | 1 [ 0 1 2 ] ) ( : [ 0 - 5 ] \d ) { 1 , 2 } ( \ ? [ A P ] M ) ) $ / i. test ( value ) ;
4138} , "Please enter a valid time in 12-hour am/pm format" ) ;
Original file line number Diff line number Diff line change 1+ jQuery . validator . addMethod ( "time" , function ( value , element ) {
2+ return this . optional ( element ) || / ^ ( [ 0 1 ] \d | 2 [ 0 - 3 ] ) ( : [ 0 - 5 ] \d ) { 1 , 2 } $ / . test ( value ) ;
3+ } , "Please enter a valid time, between 00:00 and 23:59" ) ;
You can’t perform that action at this time.
0 commit comments