hackish fix for pending publishes not working

This commit is contained in:
Jeremy Kauffman 2017-06-28 11:24:16 -04:00
parent 020f437a63
commit 289bb0b4ae

View file

@ -99,7 +99,8 @@ lbryuri.parse = function(uri, requireProto = false) {
if (
claimId &&
(claimId.length > CLAIM_ID_MAX_LEN || !claimId.match(/^[0-9a-f]+$/))
(claimId.length > CLAIM_ID_MAX_LEN || !claimId.match(/^[0-9a-f]+$/)) &&
!claimId.match(/^pending_/) //ought to be dropped when savePendingPublish drops hack
) {
throw new Error(__(`Invalid claim ID %s.`, claimId));
}