fix: fix regex errors

This commit is contained in:
Yarmo Mackenbach 2023-10-09 19:34:44 +02:00
parent 9bdc0a639f
commit f724e81c06
No known key found for this signature in database
GPG key ID: C248C28D432560ED
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ export async function fn (data, opts) {
showErrors: false, showErrors: false,
debug: 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 reEnd = /End\sof\s.*\staxonomy./
const keys = [] const keys = []

View file

@ -16,7 +16,7 @@ limitations under the License.
import * as E from '../enums.js' import * as E from '../enums.js'
import { ServiceProvider } from '../serviceProvider.js' import { ServiceProvider } from '../serviceProvider.js'
export const reURI = /^https:\/\/lobste\.rs\/(:?~|u\/)(.*)\/?/ export const reURI = /^https:\/\/lobste\.rs\/(?:~|u\/)(.*)\/?/
/** /**
* @function * @function