-
Notifications
You must be signed in to change notification settings - Fork 102
Issue #262 #272
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
Issue #262 #272
Conversation
… slashes in fractional ingredieents, issue # 262
|
Just wanted to open up a bug report for incredians itself .... something like »butter/margarine« ;) |
yeah, this should also take care of slashes in listed ingredients that aren't fractions. I'm not sure why slashes were stripped from it originally |
|
@timandrews335 actually, although this is a nice implementation, I think it would be better to escape the slashes rather than remove them. Do you think you can alter your pull request to do that instead? |
Yes sounds good! |
Hi @mrzapp - |
|
@timandrews335 great, thanks for the contribution! One last check, we had a report of categories and keywords breaking when they had slashes in them, is that fixed with this pull request too? |
@mrzapp do you know what issue that was (is it an open or closed one?). I just edited a category and a keyword, put in a slash, and it worked. By breaking, did they they mean categories and keywords were removing slashes? If that's the case, this should fix that. |
|
@timandrews335 alright, if you tested it without issues, then I'll merge it :) Thanks again for the contribution |
|
@timandrews335 I'm seeing the issue now, if you add a slash to a category and then click it, I get a "page not found" error, and the JavaScript crashes. @sam-19 any ideas? |
|
Sorry, my router suffered a catastrophic breakdown and I've been kind of in the dark waiting for a replacement for the past week. This problem is caused by the fact that forward slashes are preserved key characters for URL route matching schemes (same as in file system paths). Using a slash in a parameter in the URL will break route matching. So it has to either be escaped or removed. No other way around it that I know of, sorry. |
|
Ok, I'll remove slashes specifically for categories, then |
Added the ability to preserve forward slashes in cleanUpString, so we may have ingredients with fractional amounts.