TryRuby
TryRuby copied to clipboard
Error in try_ruby_190.md not working
The file try_ruby_190.md defines an error message. However, I can't get this error message to pop up. The answer regex probably needs to be different.
lang: EN
title: Sadly, You Hate Toast Poetry
answer: (toast){0}
load: prev
ok: Excellent
error: Still smells like toast to me
we could do honeydew[\s\S]*?honeydew. This protects from use of sub as well.
Hm. Course says to use anything except of toast... Maybe this would work better: /\A([\s\S](?!toast))*\z/
This could be a better idea if we were to catch toast as the first word: \A((?<!toast)[\s\S])*\z