3.7 (#738)
* 3.7 * Update new rules * RegExp * formatBalance cleanups * Revert * Formatting * fill * format test fix * cleanups * Cleanups * Expand bip39 tests * Cleanups * Cleanups
This commit is contained in:
@@ -8,7 +8,7 @@ import hexStripPrefix from './stripPrefix';
|
||||
import { ToBnOptions } from '../types';
|
||||
|
||||
function reverse (value: string): string {
|
||||
return (value.match(new RegExp('.{1,2}', 'g')) || [])
|
||||
return (value.match(/.{1,2}/g) || [])
|
||||
.reverse()
|
||||
.join('');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user