Merge pull request #4255 from BrokenEagle/additional-twitter-hashtag
Add additional Twitter hashtag
This commit is contained in:
@@ -21,6 +21,7 @@ module Sources::Strategies
|
|||||||
# the pattern to avoid creating empty strings.
|
# the pattern to avoid creating empty strings.
|
||||||
COMMON_TAG_REGEXES = [
|
COMMON_TAG_REGEXES = [
|
||||||
/(?<!\A)生誕祭(?:\d*)\z/,
|
/(?<!\A)生誕祭(?:\d*)\z/,
|
||||||
|
/(?<!\A)誕生祭(?:\d*)\z/,
|
||||||
/(?<!\A)版もうひとつの深夜の真剣お絵描き60分一本勝負(?:_\d+)?\z/,
|
/(?<!\A)版もうひとつの深夜の真剣お絵描き60分一本勝負(?:_\d+)?\z/,
|
||||||
/(?<!\A)版深夜の真剣お絵描き60分一本勝負(?:_\d+)?\z/,
|
/(?<!\A)版深夜の真剣お絵描き60分一本勝負(?:_\d+)?\z/,
|
||||||
/(?<!\A)深夜の真剣お絵描き60分一本勝負(?:_\d+)?\z/,
|
/(?<!\A)深夜の真剣お絵描き60分一本勝負(?:_\d+)?\z/,
|
||||||
@@ -138,8 +139,9 @@ module Sources::Strategies
|
|||||||
|
|
||||||
def normalize_tag(tag)
|
def normalize_tag(tag)
|
||||||
COMMON_TAG_REGEXES.each do |rg|
|
COMMON_TAG_REGEXES.each do |rg|
|
||||||
if tag.match(rg)
|
norm_tag = tag.gsub(rg,"")
|
||||||
return tag.gsub(rg,"")
|
if norm_tag != tag
|
||||||
|
return norm_tag
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
tag
|
tag
|
||||||
|
|||||||
Reference in New Issue
Block a user