Skip to content

Commit

Permalink
Update the changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
chriso committed Aug 2, 2016
1 parent d0a02cb commit a8b3eba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

- Added an `isMD5()` validator
([#557](https://github.com/chriso/validator.js/pull/557))
- Added a Saudi Arabian locale to `isMobilePhone()`
([#559](https://github.com/chriso/validator.js/pull/559))

#### 5.5.0

Expand Down

2 comments on commit a8b3eba

@AS400JPLPC
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hello is french my,

only read write

isdate is not good

change
regarde my works job informatique is hold mi

   var fmtdate = {
    'yyyymmdd'  : /^\d{4}\d{2}\d{2}$/,
    'yyyy/mm/dd': /^\d{4}[./-]\d{2}[./-]\d{2}$/,         
    'yyyy-mm-dd': /^\d{4}[./-]\d{2}[./-]\d{2}$/, 
    'yyyy.mm.dd': /^\d{4}[./-]\d{2}[./-]\d{2}$/,               
    'dd/mm/yyyy': /^\d{2}[./-]\d{2}[./-]\d{4}$/,
    'dd-mm-yyyy': /^\d{2}[./-]\d{2}[./-]\d{4}$/,
    'dd.mm.yyyy': /^\d{2}[./-]\d{2}[./-]\d{4}$/,
    'mm/dd/yyyy': /^\d{2}[./-]\d{2}[./-]\d{4}$/,
    'mm-dd-yyyy': /^\d{2}[./-]\d{2}[./-]\d{4}$/,
    'mm.dd.yyyy': /^\d{2}[./-]\d{2}[./-]\d{4}$/        
  };    

function isDateFmt(str) {
     var locale = arguments.length <= 1 || arguments[1] === undefined ? 'yyyymmdd' : arguments[1];

    assertString(str);
    if (locale in fmtdate) if( ! fmtdate[locale].test(str)) return false;




    if( locale == 'dd/mm/yyyy' || locale == 'dd-mm-yyyy' || locale == 'dd.mm.yyyy') {   
            var day   = str.substr(0,2);
            var month = str.substr(3,2);
            var year  = str.substr(6,4);
                                };

    if( locale == 'mm/dd/yyyy' || locale == 'mm-dd-yyyy' || locale == 'mm-dd-yyyy') {   
            var month = str.substr(0,2);
            var day   = str.substr(3,2);
            var year  = str.substr(6,4);
                                };              

    if( locale == 'yyyymmdd') {
            var year  = str.substr(0,4);   
            var month = str.substr(4,2);
            var day   = str.substr(6,2);
                                };       
    if( locale == 'yyyy/mm/dd' || locale == 'yyyy-mm-dd' || locale == 'yyyy-mm-dd') {
            var year  = str.substr(0,4);   
            var month = str.substr(7,2);
            var day   = str.substr(8,2);
                                };  


    if((month < 1) || (month > 12)) return false;      
    else if((day < 1) || (day > 31)) return false;
    else if((month == 2) && (day > 28)) return false;
    else if(((month == 4)  || (month == 6) || (month == 9)  || (month == 11)) && (day > 30)) return false;
    else if((month == 2) && (((year % 400) == 0) || ((year % 4) == 0)) && ((year % 100) != 0) && (day > 29)) return false;
    else if((month == 2) && ((year % 100) == 0) && (day > 29)) return false;


    return true ; 

    }

and

  var digit = /^[0-9]+$/;

  function isDigit(str) {
    assertString(str);
    return numeric.test(str);
  }

is veridificult (+-) is comptable not good 2 field a: credit b: debit

---- thank you fort validation.js
is use for tooltip

I'm on a very large template
I picked your model that allowed me to unlock and type screens ibm400 5250. (reliability)

I only work when javascript C ++ for seveur in real time.

I'm retraitre.

Thank you and see you soon

@chriso
Copy link
Collaborator Author

@chriso chriso commented on a8b3eba Aug 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AS400JPLPC I'm not sure what you're asking or proposing. Please submit an issue where it can be discussed further. It might be easier to submit the issue in your native language of French, and then I can use Google Translate 😉

Please sign in to comment.