diff --git a/common/modules/constants.js b/common/modules/constants.js index d66481a..5ba3e58 100644 --- a/common/modules/constants.js +++ b/common/modules/constants.js @@ -11,7 +11,7 @@ export const urlSearchParams = new URLSearchParams(window.location.search); export const sourceURL = urlSearchParams.get('source')?.replaceAll("+", "%2B"); // https://stackoverflow.com/a/8943487 -export const urlRegex = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig; +export const urlRegex = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;()]*[-A-Z0-9+&@#\/%=~_|)])/ig; export const sources = [ "https://therealfoxster.github.io/altsource/apps.json",