tests: simplify OP_* regex
This commit is contained in:
parent
2392ce0a49
commit
df2bd19033
1 changed files with 1 additions and 3 deletions
|
@ -185,9 +185,7 @@ describe('Bitcoin-core', function () {
|
||||||
|
|
||||||
inputs.forEach(function (input) {
|
inputs.forEach(function (input) {
|
||||||
var prevOutScriptPubKey = input[2]
|
var prevOutScriptPubKey = input[2]
|
||||||
.replace(/(^| )1( |$)/g, 'OP_1 ').replace(/(^| )2( |$)/g, 'OP_2 ').replace(/(^| )3( |$)/g, 'OP_3 ')
|
.replace(/(^| )([0-9])( |$)/g, 'OP_$2 ')
|
||||||
.replace(/(^| )4( |$)/g, 'OP_4 ').replace(/(^| )5( |$)/g, 'OP_5 ').replace(/(^| )6( |$)/g, 'OP_6 ')
|
|
||||||
.replace(/(^| )7( |$)/g, 'OP_7 ').replace(/(^| )8( |$)/g, 'OP_8 ').replace(/(^| )9( |$)/g, 'OP_9 ')
|
|
||||||
.replace(/0x[a-f0-9]+ 0x([a-f0-9]+)/, '$1')
|
.replace(/0x[a-f0-9]+ 0x([a-f0-9]+)/, '$1')
|
||||||
.replace(/DUP/g, 'OP_DUP')
|
.replace(/DUP/g, 'OP_DUP')
|
||||||
.replace(/NOT/g, 'OP_NOT')
|
.replace(/NOT/g, 'OP_NOT')
|
||||||
|
|
Loading…
Reference in a new issue