Skip to content
Snippets Groups Projects
Commit d90692a6 authored by Éloïs's avatar Éloïs
Browse files

[fix] #1252 : WS2OC is not Matched

parent 5f984c16
Branches
Tags
1 merge request!1235[fix] #1252
...@@ -52,7 +52,7 @@ export const WS2PConstants = { ...@@ -52,7 +52,7 @@ export const WS2PConstants = {
+ CommonConstants.FORMATS.BLOCKSTAMP + CommonConstants.FORMATS.BLOCKSTAMP
+ '$'), + '$'),
HEAD_V1_REGEXP: new RegExp('^WS2P(?:O[CT][SAM])?(?:I[CT])?:HEAD:1:' HEAD_V1_REGEXP: new RegExp('^WS2P(?:O[CT][SAM]?)?(?:I[CT])?:HEAD:1:'
+ '(' + CommonConstants.FORMATS.PUBKEY + '):' + '(' + CommonConstants.FORMATS.PUBKEY + '):'
+ '(' + CommonConstants.FORMATS.BLOCKSTAMP + '):' + '(' + CommonConstants.FORMATS.BLOCKSTAMP + '):'
+ '(' + CommonConstants.FORMATS.WS2PID + '):' + '(' + CommonConstants.FORMATS.WS2PID + '):'
...@@ -61,7 +61,7 @@ export const WS2PConstants = { ...@@ -61,7 +61,7 @@ export const WS2PConstants = {
+ '(' + CommonConstants.FORMATS.POW_PREFIX + ')' + '(' + CommonConstants.FORMATS.POW_PREFIX + ')'
+ '$'), + '$'),
HEAD_V2_REGEXP: new RegExp('^WS2P(?:O[CT][SAM])?(?:I[CT])?:HEAD:2:' HEAD_V2_REGEXP: new RegExp('^WS2P(?:O[CT][SAM]?)?(?:I[CT])?:HEAD:2:'
+ '(' + CommonConstants.FORMATS.PUBKEY + '):' + '(' + CommonConstants.FORMATS.PUBKEY + '):'
+ '(' + CommonConstants.FORMATS.BLOCKSTAMP + '):' + '(' + CommonConstants.FORMATS.BLOCKSTAMP + '):'
+ '(' + CommonConstants.FORMATS.WS2PID + '):' + '(' + CommonConstants.FORMATS.WS2PID + '):'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment