diff --git a/src/getNewPrompt.mjs b/src/getNewPrompt.mjs index 1ee6f17..72b18bb 100644 --- a/src/getNewPrompt.mjs +++ b/src/getNewPrompt.mjs @@ -40,7 +40,7 @@ export default async function getNewPrompt({ minCount = 200000, maxCount = 30000 -console.dir(await getNewPrompt({})) +//console.dir(await getNewPrompt({})) diff --git a/src/makeText.mjs b/src/makeText.mjs index 15ae41a..c5d1d03 100644 --- a/src/makeText.mjs +++ b/src/makeText.mjs @@ -46,4 +46,3 @@ return text+meaningsText+postScript function removeUrls(string){ return string.replace(/(https:\/\/www\.|http:\/\/www\.|https:\/\/|http:\/\/)?[a-zA-Z]{2,}(\.[a-zA-Z]{2,})(\.[a-zA-Z]{2,})?\/[a-zA-Z0-9]{2,}|((https:\/\/www\.|http:\/\/www\.|https:\/\/|http:\/\/)?[a-zA-Z]{2,}(\.[a-zA-Z]{2,})(\.[a-zA-Z]{2,})?)|(https:\/\/www\.|http:\/\/www\.|https:\/\/|http:\/\/)?[a-zA-Z0-9]{2,}\.[a-zA-Z0-9]{2,}\.[a-zA-Z0-9]{2,}(\.[a-zA-Z0-9]{2,})?/g, '') } -console.log(removeUrls("Hello there newgrounds.com www.poopants.org this is http://localhost:80 working as intended.")) \ No newline at end of file