File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change
1
+ #### HEAD
2
+
3
+ - Added an ` isMD5() ` validator
4
+ ([ #557 ] ( https://github.com/chriso/validator.js/pull/557 ) )
5
+
1
6
#### 5.5.0
2
7
3
8
- Fixed a regex denial of service in ` trim() ` and ` rtrim() `
Original file line number Diff line number Diff line change @@ -11,9 +11,7 @@ var _assertString2 = _interopRequireDefault(_assertString);
11
11
12
12
function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { default : obj } ; }
13
13
14
- /* eslint-disable no-control-regex */
15
14
var md5 = / ^ [ a - f 0 - 9 ] { 32 } $ / ;
16
- /* eslint-enable no-control-regex */
17
15
18
16
function isMD5 ( str ) {
19
17
( 0 , _assertString2 . default ) ( str ) ;
Original file line number Diff line number Diff line change 563
563
return hexcolor . test ( str ) ;
564
564
}
565
565
566
- /* eslint-disable no-control-regex */
567
566
var md5 = / ^ [ a - f 0 - 9 ] { 32 } $ / ;
568
- /* eslint-enable no-control-regex */
569
567
570
568
function isMD5 ( str ) {
571
569
assertString ( str ) ;
You can’t perform that action at this time.
0 commit comments