Skip to content

Commit a094a8f

Browse files
authored
Merge pull request #93 from nekketsuuu/patch-1
Count words with punctuation apostrophes considered
2 parents f832611 + d04f62e commit a094a8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/sponsorship.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def slug
146146
end
147147

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

152152
def policy_agreement

0 commit comments

Comments
 (0)