amotify 0.0.53 → 0.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -675,7 +675,11 @@ const KeyDownEvent = ( props: {
|
|
|
675
675
|
{
|
|
676
676
|
let nextFormatValue = String( formatValue ).partReplace( from,String( partsValue ) );
|
|
677
677
|
let nextDataValue = nextFormatValue.split( PeriodMargin ).map( ( value ) => {
|
|
678
|
-
return value
|
|
678
|
+
return value
|
|
679
|
+
.replace( /(^\D|\D$)/,'' )
|
|
680
|
+
.split( /\D+/ )
|
|
681
|
+
.join( restrict == 'clock' ? ':' : '/' )
|
|
682
|
+
.replace( /(^\D|\D$)/,'' );
|
|
679
683
|
} );
|
|
680
684
|
if ( restrict == 'dateWareki' ) {
|
|
681
685
|
let v = nextDataValue[ 0 ].split( /\D/ );
|