TryRuby icon indicating copy to clipboard operation
TryRuby copied to clipboard

Error in try_ruby_190.md not working

Open onichama opened this issue 2 years ago • 3 comments

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

onichama avatar Aug 26 '23 16:08 onichama

we could do honeydew[\s\S]*?honeydew. This protects from use of sub as well.

hmdne avatar Nov 25 '23 17:11 hmdne

Hm. Course says to use anything except of toast... Maybe this would work better: /\A([\s\S](?!toast))*\z/

hmdne avatar Nov 25 '23 17:11 hmdne

This could be a better idea if we were to catch toast as the first word: \A((?<!toast)[\s\S])*\z

hmdne avatar Nov 25 '23 17:11 hmdne