*: adhere to standard 3
This commit is contained in:
parent
d33b1c01ad
commit
f64df79555
3 changed files with 5 additions and 4 deletions
src
|
@ -14,8 +14,9 @@ function isCanonicalPubKey (buffer) {
|
|||
try {
|
||||
ecurve.Point.decodeFrom(curve, buffer)
|
||||
} catch (e) {
|
||||
if (!(e.message.match(/Invalid sequence (length|tag)/)))
|
||||
if (!(e.message.match(/Invalid sequence (length|tag)/))) {
|
||||
throw e
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue