-
Notifications
You must be signed in to change notification settings - Fork 62
Fix to eo.js and tok.js validation scripts #616
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once merged it will automatically be deployed to the staging instance at https://commonvoice.allizom.org/sentence-collector. This might take about 20 minutes. Can you verify the fix there and if all good, I will run a deployment to production. Thanks!
@janPensa tested on https://commonvoice.allizom.org/sentence-collector, looks good to me. Would you agree? |
@MichaelKohler It seems like https://commonvoice.allizom.org/sentence-collector uses the old validation script. It rejects sentences longer than 14 words, and doesn't reject invalid words that don't follow phonotactics. |
Yeah, looks like something is off with that deployment. I'll deploy to production now then. |
🎉 This PR is included in version 2.17.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Okay. I'll wait a bit and test on commonvoice.mozilla.org |
@MichaelKohler I did a few different tests. Looks like everything works as intended now! |
@janPensa should be deployed now :) |
@janPensa hah, you were faster than me. Thanks for the verification and the hotfix! |
Somehow
[BbCcDdFfGgHhQqRrVvXxYyZz\u00C0-\u02BF\u1E00-\u1EFF\uF1900-\uF19FF]
and[qQwWxXyYÀ-ćĊ-ěĞ-ģĞ-ģĦ-ijĶ-śŞ-ūŮ-\u02AF\u1E00-\u1EFFα-ωΑ-ΩЀ-ӿ]
match with all regular Latin letters as well, making the Sentence Collector reject all submissions.Changed to
[BbCcDdFfGgHhQqRrVvXxYyZzÀ-ʯḀ-ỿ]
and[qQwWxXyYÀ-ćĊ-ěĞ-ģĞ-ģĦ-ijĶ-śŞ-ūŮ-ʯḀ-ỿα-ωΑ-ΩЀ-ӿ]
, which should work well. (At least they do in Notepad++, which I found has the same behavior.)