about summary refs log tree commit diff
path: root/app/models/tag.rb
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2023-04-22 20:32:00 -0500
committerStarfall <us@starfall.systems>2023-04-22 20:32:00 -0500
commit609ee7b2979252464e63acbfd2eff3e0e3786f3e (patch)
tree6ade160c4354b803ed36ae5dae28a0ae38bcf032 /app/models/tag.rb
parent4fe1689de43f4404eb9530fcfbcbfb26d6c1c13a (diff)
parent5b58ebb04fe197cc7aa0cfc05a4d1b2df8da0050 (diff)
Merge remote-tracking branch 'glitch/main'
Diffstat (limited to 'app/models/tag.rb')
-rw-r--r--app/models/tag.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/tag.rb b/app/models/tag.rb
index 554a92d90..9fb32cd06 100644
--- a/app/models/tag.rb
+++ b/app/models/tag.rb
@@ -31,8 +31,8 @@ class Tag < ApplicationRecord
   HASHTAG_FIRST_SEQUENCE_CHUNK_ONE = "[[:word:]_][[:word:]#{HASHTAG_SEPARATORS}]*[[:alpha:]#{HASHTAG_SEPARATORS}]"
   HASHTAG_FIRST_SEQUENCE_CHUNK_TWO = "[[:word:]#{HASHTAG_SEPARATORS}]*[[:word:]_]"
   HASHTAG_FIRST_SEQUENCE = "(#{HASHTAG_FIRST_SEQUENCE_CHUNK_ONE}#{HASHTAG_FIRST_SEQUENCE_CHUNK_TWO})"
-  HASTAG_LAST_SEQUENCE = '([[:word:]_]*[[:alpha:]][[:word:]_]*)'
-  HASHTAG_NAME_PAT = "#{HASHTAG_FIRST_SEQUENCE}|#{HASTAG_LAST_SEQUENCE}"
+  HASHTAG_LAST_SEQUENCE = '([[:word:]_]*[[:alpha:]][[:word:]_]*)'
+  HASHTAG_NAME_PAT = "#{HASHTAG_FIRST_SEQUENCE}|#{HASHTAG_LAST_SEQUENCE}"
 
   HASHTAG_RE = /(?:^|[^\/\)\w])#(#{HASHTAG_NAME_PAT})/i
   HASHTAG_NAME_RE = /\A(#{HASHTAG_NAME_PAT})\z/i