Vertical line/pipe character | is counted as a word by word count
Description
Steps to reproduce
Log in
Post > New Work
Fill in required fields
For the work text, enter one of the following: "foo bar |", "ab cd|ef", or "||||||||||"
Post
What happens Setting the text of the work to "foo bar |" results in a word count of 3, setting it to "ab cd|ef" results in a word count of 4, and setting it to "||||||||||" results in a word count of 10.
What should happen Setting the text of the work to "foo bar |" should result in a word count of 3; setting it to "ab cd|ef" should result in a word count of 3, and setting it to "||||||||||" should result in a word count of 0.
Deploy notes
We need to run bundle exec rake After:reset_word_counts which recomputes word counts for every work.
Activity
Show:
Brian Austin
January 29, 2024 at 11:07 PM
Ran the rake on prod. It took over 30 hours, and my laptop eventually just killed the connection, but at that point over 90% of works had been processed which I think is good enough.
Steps to reproduce
Log in
Post > New Work
Fill in required fields
For the work text, enter one of the following: "foo bar |", "ab cd|ef", or "||||||||||"
Post
What happens
Setting the text of the work to "foo bar |" results in a word count of 3, setting it to "ab cd|ef" results in a word count of 4, and setting it to "||||||||||" results in a word count of 10.
What should happen
Setting the text of the work to "foo bar |" should result in a word count of 3; setting it to "ab cd|ef" should result in a word count of 3, and setting it to "||||||||||" should result in a word count of 0.
Deploy notes
We need to run
bundle exec rake After:reset_word_counts
which recomputes word counts for every work.