Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix regex state causing subsequent runs of Tag.extractSignature to fail
  • Loading branch information
emmax86 committed Feb 14, 2019
commit 2f099c8573fec4234c6bee5d4e1a82b283e55e39
2 changes: 1 addition & 1 deletion lib/tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Tag.prototype.extractSignature = function(signatureType = "gpgsig") {
const odbData = odbObject.toString();

for (const regex of signatureRegexes) {
const matchResult = regex.exec(odbData);
const matchResult = odbData.match(regex);

if (matchResult !== null) {
return matchResult[0];
Expand Down