Uh oh!
There was an error while loading. Please reload this page.
fix(isAlpha): fix ح character validation in fa-IR language code (#1400) - #1455
Conversation
Codecov Report
@@ Coverage Diff @@## master #1455 +/- ##
=======================================
Coverage 99.92% 99.92% =======================================
Files 96 96 Lines 1275 1276 +1 =======================================
+ Hits 1274 1275 +1
Misses 1 1
Continue to review full report at Codecov.
|
profnandaa
commented
Oct 5, 2020
Thanks for your contribution! Please rebase your branch with |
fakhrip
commented
Oct 5, 2020
I have removed all unnecessary changes, please tell me if i do something wrong here. |
profnandaa
left a comment
There was a problem hiding this comment.
LGTM, thanks for your contrib 🎉 // Just update the README and we should be good to go.
Im pretty sure that there are nothing to be updated in the readme file regarding these changes as its already well-documented there (in the readme) @profnandaa Edit: I've checked all the boxes so its all clear |
| 'uk-UA': /^[А-ЩЬЮЯЄIЇҐі]+$/i, | ||
| 'vi-VN': /^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i, | ||
| 'ku-IQ': /^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i, | ||
| 'fa-IR': /^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i, |
There was a problem hiding this comment.
Can move this to L10 so that it's in alphabetic order.
There was a problem hiding this comment.
Sure thing!,
ill do it tonight (got to pray first)
profnandaa
commented
Oct 6, 2020
@fakhrip -- my bad, thought it was a new locale. |
fakhrip
commented
Oct 6, 2020
Im sorry but i didnt get it, in which file should i see this ? |
profnandaa
commented
Oct 7, 2020
That's |
Can we just add this to line 121 in |
profnandaa
commented
Oct 8, 2020
Ok, that works, you can drop in a comment before that. |
fakhrip
commented
Oct 9, 2020
Done, if there are anything i should do, please tell me 🙏 |
profnandaa
left a comment
There was a problem hiding this comment.
LGTM, thanks for your contrib once again! 🎉
fakhrip
commented
Oct 10, 2020
Sure, thank you so much for being good as this is my first legit PR 😃 |
profnandaa
commented
Oct 10, 2020
Welcome buddy, looking forward to seeing more from you :) |
tux-tn
commented
Nov 8, 2020
@profnandaa@fakhrip i don't understand the purpose of the change in L124 😅 |
fakhrip
commented
Nov 8, 2020
It was overriden by L101 @tux-tn , |
tux-tn
commented
Nov 8, 2020
I still don't get it, since alpha array has already been mutated |
fakhrip
commented
Nov 8, 2020
exportconstfarsiLocales=['IR','AF',];for(letlocale,i=0;i<farsiLocales.length;i++){locale=`fa-${farsiLocales[i]}`;alpha[locale]=alpha.fa;// This line changes alpha[fa-IR] content to alpha.faalphanumeric[locale]=alphanumeric.fa;decimal[locale]=decimal.fa;}And because that the content of 'fa-IR': /^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,fa: /^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,It will then be needed to re-override the |
|
fakhrip
commented
Nov 12, 2020
Oh wait, i just realized that i was wrong XD, i'm very sorry dude, now i feel like really stupid... |
fakhrip
commented
Nov 12, 2020
Do you think i need to fix this in another PR as this one already got merged, or what should i do best ? |
tux-tn
commented
Nov 12, 2020
@fakhrip actually i'm asking the question because i'm working on a PR to update dependencies (including eslint who keeps screaming about that line) i fixed it in my branch and i'll probably create a PR by the end of the week. |
fakhrip
commented
Nov 13, 2020
tux-tn
commented
Nov 13, 2020
@fakhrip no problem my friend, thank you for taking the time to answer my questions. It's not a big deal |
profnandaa
commented
Nov 15, 2020
thanks for the due diligence on this @tux-tn |
I added some Persian alphabet characters retrieved from wikipedia on this line
Also add new validation regarding the language in the validator.js
This PR specifically fix#1400
Checklist