From f724e81c06c80951a5b2e589ad20ef749eaa85e2 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Mon, 9 Oct 2023 19:34:44 +0200 Subject: [PATCH] fix: fix regex errors --- src/fetcher/irc.js | 2 +- src/serviceProviders/lobsters.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fetcher/irc.js b/src/fetcher/irc.js index d035a90..5c7aeb3 100644 --- a/src/fetcher/irc.js +++ b/src/fetcher/irc.js @@ -56,7 +56,7 @@ export async function fn (data, opts) { showErrors: false, debug: false }) - const reKey = /[a-zA-Z0-9\-_]+\s+:\s(openpgp4fpr|aspe:.*)/ + const reKey = /[a-zA-Z0-9\-_]+\s+:\s((?:openpgp4fpr|aspe):.*)/ const reEnd = /End\sof\s.*\staxonomy./ const keys = [] diff --git a/src/serviceProviders/lobsters.js b/src/serviceProviders/lobsters.js index 5d36d47..9e72985 100644 --- a/src/serviceProviders/lobsters.js +++ b/src/serviceProviders/lobsters.js @@ -16,7 +16,7 @@ limitations under the License. import * as E from '../enums.js' import { ServiceProvider } from '../serviceProvider.js' -export const reURI = /^https:\/\/lobste\.rs\/(:?~|u\/)(.*)\/?/ +export const reURI = /^https:\/\/lobste\.rs\/(?:~|u\/)(.*)\/?/ /** * @function