Hey @chrisvfritz, can you take a look at this? It's hosted here and meets the following project criteria:
[x] In our community, "flurb" is a very, very bad word. If the title or content contain the word "flurb", or variants such as "Flurb", "flurbing", "flurber", "flerb", "florb", or "fl|_|rb", this error is added to the attribute: can't include the word "flurb" or a variation thereof
[x] Validate that the name only contains letters, spaces, periods, dashes, and commas. Otherwise, this error should be added to the name attribute: isn't a valid name (only letters, spaces, periods, dashes, and commas allowed)
[x] To help you know when your regex is working, some tests have been written in spec/models/post_spec.rb. Run rspec from your project directory to run these tests. When it reports 0 failures, you're done!
Hey @chrisvfritz, can you take a look at this? It's hosted here and meets the following project criteria:
can't include the word "flurb" or a variation thereof
isn't a valid name (only letters, spaces, periods, dashes, and commas allowed)
rspec
from your project directory to run these tests. When it reports0 failures
, you're done!