From 5024dc92af74da30ddc22b92c35ae92d6f2e270f Mon Sep 17 00:00:00 2001 From: Cadence Fish Date: Tue, 4 Feb 2020 19:15:16 +1300 Subject: [PATCH] Disallow newlines in hashtag --- src/lib/constants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/constants.js b/src/lib/constants.js index 05acec0..ce3bc00 100644 --- a/src/lib/constants.js +++ b/src/lib/constants.js @@ -43,7 +43,7 @@ let constants = { timeline_fetch_first: 12, username_regex: "[\\w.]+", shortcode_regex: "[\\w-]+", - hashtag_regex: "[^ `~!@#\\$%^&*()\\-=+[\\]{};:\"',<.>/?\\\\]+" + hashtag_regex: "[^ \\n`~!@#\\$%^&*()\\-=+[\\]{};:\"',<.>/?\\\\]+" }, resources: {