From 62da545a94f609b6c516a19c65f5fd3e83495002 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 19 May 2018 21:03:17 -0600 Subject: [PATCH] Add hashtag lexer --- app/Util/Lexer/Hashtag.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 app/Util/Lexer/Hashtag.php diff --git a/app/Util/Lexer/Hashtag.php b/app/Util/Lexer/Hashtag.php new file mode 100644 index 000000000..9f19ed897 --- /dev/null +++ b/app/Util/Lexer/Hashtag.php @@ -0,0 +1,36 @@ +{$hashtag}"; + $rendered = str_replace($hashtag, $href, $rendered); + } + + return $rendered; + + } + +} \ No newline at end of file