Skip to content

Commit

Permalink
Merge pull request #129 from true-runes/development
Browse files Browse the repository at this point in the history
v4.1.1
  • Loading branch information
nikukyugamer authored Jun 12, 2021
2 parents 5b29671 + 8bb904e commit e12454d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/lib/suikoden_database/pickup_character_names.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ module SuikodenDatabase
class PickupCharacterNames
class << self
def execute(tweet_or_dm)
check_words = tweet_or_dm.analyze_syntax.check_words
# FIXME: tweet_or_dm.analyze_syntax が nil の場合がある
# おそらく DM は別タイミングで取得しているから、DM の analyze_syntax が存在しないときだろう
check_words = tweet_or_dm.analyze_syntax&.check_words

gensosenkyo_candidate_names = []
check_words.each do |check_word|
Expand Down Expand Up @@ -31,6 +33,7 @@ def skip_word?(word)
# そもそも check_words に含まれていない語はここではどうしようもない
def skip_words
[
'様',
'票',
'/',
'm',
Expand Down

0 comments on commit e12454d

Please sign in to comment.