more accurate word counts

Changed files
+1 -1
app
views
articles
+1 -1
app/views/articles/show.html.erb
··· 19 19 <%= link_to @article.tag.name, @article.tag, class: "p-category" %> 20 20 <span aria-hidden="true">|</span> 21 21 <span style="color:var(--main-color);"> 22 - <%= @article.body.scan(/\w+/).size %> words 22 + <%= @article.body.scan(/[\p{Alpha}\-']+/).size %> words 23 23 </span> 24 24 </span> 25 25