just to be safe add in other characters that may be in a url
commit987319920ff2bfe6302ed4b1a986e1c7ccdef44d
authorckipp01 <ckipp@pm.me>
dateSun 21 Jul 2019, 16:56 (7 years ago)
parent6282c0e
scripts/hallway.js+1−1
@@ -1,7 +1,7 @@
11'use strict'
22
33const re_channel = /(\s|^)\/([a-zA-Z0-9]+)/g
4−const re_user = /((\s|^)@<[a-zA-Z0-9./: ]*>)/g
4+const re_user = /((\s|^)@<[a-zA-Z0-9./:\-_\+~#= ]*>)/g
55const re_tag = /([^&]|^)\#([a-zA-Z0-9]+)/g
66const re_url = /((https?):\/\/(([-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b)([-a-zA-Z0-9@:%_\+.~#?&//=]*)))/g
77