Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in try_ruby_190.md not working #158

Open
onichama opened this issue Aug 26, 2023 · 3 comments
Open

Error in try_ruby_190.md not working #158

onichama opened this issue Aug 26, 2023 · 3 comments

Comments

@onichama
Copy link

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

@hmdne
Copy link
Collaborator

hmdne commented Nov 25, 2023

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

@hmdne
Copy link
Collaborator

hmdne commented Nov 25, 2023

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

@hmdne
Copy link
Collaborator

hmdne commented Nov 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants