Skip to content

Commit

Permalink
Merge pull request #92 from nekketsuuu/patch-1
Browse files Browse the repository at this point in the history
Allow hyphenated words and contractions to be counted as single words
  • Loading branch information
sorah authored Jan 23, 2025
2 parents ab55865 + 845f86c commit f832611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/sponsorship.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def slug
end

def word_count
profile&.scan(/\w+/)&.size || 0
profile&.scan(/[\w\-']+/)&.size || 0
end

def policy_agreement
Expand Down

0 comments on commit f832611

Please sign in to comment.