You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When accepting manually typed input from users for translations, the user's answer is marked incorrect if there is any extra whitespace at the end of the input. This error is exclusive to trailing whitespace, as extra whitespace between or before words does not cause this issue. For example, when translating the phrase "El come pizza" to English, the correct translation "He eats pizza" is marked incorrect if entered as "He eats pizza " (with an extra space at the end).
Steps to Reproduce:
Navigate to the website and begin a lesson.
Enter the correct translation for any text input with an extra space at the end (i.e., "He eats pizza ").
Submit the answer.
Expected Result:
The app should trim any trailing whitespace from input before validation, and mark the translation "He eats pizza " as correct.
Actual Result:
The app notifies the user that a typo exists.
Impact:
This issue can be frustrating for users as it penalizes them for a minor formatting error that does not affect the correctness of the translation.
Severity:
Medium
Environment:
App Version: [insert app version here]
Operating System: [insert operating system here]
Device: [insert device model here]
Additional Information:
The issue appears to be related to how the app validates user input. It likely does a direct string comparison without trimming whitespace. rstrip(), or varibaleTrim() would work.
Attachments:
Screenshot of the incorrect answer message with extra whitespace in the input.
Suggested Fix:
Update the input validation logic to trim leading and trailing whitespace from user inputs before comparing them to the correct answer.
The text was updated successfully, but these errors were encountered:
In principle, this will take all spaces (and tabs) at the beginning and end of a block of text and remove the white spaces. I tested on the animals on librelingo.app and was able to get a correct answer despite trailing white space. I do see the screenshot above does appear to demonstrate trailing whitespace causing an issue.
I will attach screenshots, but ultimately I would say more detail is required to understand the bug.
When accepting manually typed input from users for translations, the user's answer is marked incorrect if there is any extra whitespace at the end of the input. This error is exclusive to trailing whitespace, as extra whitespace between or before words does not cause this issue. For example, when translating the phrase "El come pizza" to English, the correct translation "He eats pizza" is marked incorrect if entered as "He eats pizza " (with an extra space at the end).
Steps to Reproduce:
Navigate to the website and begin a lesson.
Enter the correct translation for any text input with an extra space at the end (i.e., "He eats pizza ").
Submit the answer.
Expected Result:
The app should trim any trailing whitespace from input before validation, and mark the translation "He eats pizza " as correct.
Actual Result:
The app notifies the user that a typo exists.
Impact:
This issue can be frustrating for users as it penalizes them for a minor formatting error that does not affect the correctness of the translation.
Severity:
Medium
Environment:
App Version: [insert app version here]
Operating System: [insert operating system here]
Device: [insert device model here]
Additional Information:
The issue appears to be related to how the app validates user input. It likely does a direct string comparison without trimming whitespace. rstrip(), or varibaleTrim() would work.
Attachments:
Screenshot of the incorrect answer message with extra whitespace in the input.
Suggested Fix:
Update the input validation logic to trim leading and trailing whitespace from user inputs before comparing them to the correct answer.
The text was updated successfully, but these errors were encountered: