Skip to content
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

FeedBack: Restrict allowed languages! #4

Open
BaseMax opened this issue Jul 3, 2019 · 5 comments
Open

FeedBack: Restrict allowed languages! #4

BaseMax opened this issue Jul 3, 2019 · 5 comments

Comments

@BaseMax
Copy link
Owner

BaseMax commented Jul 3, 2019

Hey everyone,

In this issue, we want to check the UTF-8 for different language.

Goal

You can request a language, or discuss UTF-8... (regex)

What's "data-filter-lang"?

An argument to restrict the allowed languages.

Regards,
Max

@BaseMax
Copy link
Owner Author

BaseMax commented Jul 3, 2019

Persian

Arabic alphabet + ژ + چ

ا ب پ ت ث ج چ ح خ د ذ ر ز ژ س ش ص ض ط ظ ع غ ف ق ک گ ل م ن و ه ی

۰۱۲۳۴۵۶۷۸۹

http://www.fileformat.info/info/unicode/block/arabic/list.htm
https://en.wikipedia.org/wiki/Persian_alphabet

e.g:

function justPersian(input){
    var format = /^[\u0600-\u06FF\s]+$/;
    if (!format.test(input)) {
        alert("Error!");
    }
}

@BaseMax
Copy link
Owner Author

BaseMax commented Jul 3, 2019

Arabic

ا ب پ ت ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ک گ ل م ن و ه ی

٠١٢٣٤٥٦٧٨٩

http://www.fileformat.info/info/unicode/block/arabic/list.htm
https://en.wikipedia.org/wiki/Arabic_alphabet

e.g:

function justArabic(input){
    var format = /^[\u0600-\u06FF\s]+$/;
    if (!format.test(input)) {
        alert("Error!");
    }
}

@BaseMax
Copy link
Owner Author

BaseMax commented Jul 3, 2019

English

A a B b C c D d E e F f G g H h I i J j K k L l M m N n O o P p Q q R r S s T t U u V v W w X x Y y Z z

0123456789

https://en.wikipedia.org/wiki/English_alphabet

e.g:

function justEnglish(input){
    // var format = /^[a-zA-Z0-9\s]+$/;
    var format = /^[a-zA-Z\s]+$/;
    if (!format.test(input)) {
        alert("Error!");
    }
}

@BaseMax BaseMax mentioned this issue Jul 3, 2019
@krthr
Copy link
Contributor

krthr commented Jul 5, 2019

Hey, Which languages ​​do we use?

@BaseMax
Copy link
Owner Author

BaseMax commented Jul 5, 2019

Hey, Which languages ​​do we use?

At first, we focus to complete the filter's items.
Next, we can work on this issue. (At the first: English)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants