Comments (1)
The white space logic is in https://github.com/kantord/LibreLingo/blob/main/apps/answer-corrector/src/index.ts:8
const ignoreWhitespace = (form: string): string =>
form.replace(/^\s+|\s+$/g, "").replace(/\s+/g, " ")
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.
from librelingo.
Related Issues (20)
- Errors in external courses break the build process HOT 1
- Web SSO Options HOT 1
- docker latest image error HOT 3
- `pip install librelingo-yaml-loader` Getting requirements to build wheel did not run successfully HOT 4
- Rusyn language for Serbian speakers HOT 1
- [Feature Request] Support module, skill, and phrase comments HOT 4
- [Improvement suggestion] Use pydantic to load models from YAML HOT 2
- CORS settings on the webapp are blocking signup HOT 2
- Remove Mandatory Definition for words HOT 2
- Clarifying contributing guidelines in documentation and README.md HOT 1
- Add ability to link to online dictionaries HOT 5
- More syntax features for phrases HOT 1
- Support Custom Images
- Support motivation words in new language HOT 4
- [Feature Request] Way to teach names for geographic areas by linking to a map HOT 2
- [Feature Request] Skill (and module?) Subtitles HOT 2
- [Feature Request] Conversation challenge HOT 2
- Question: ratio of Words to Phrases
- Course introduction markdown file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from librelingo.