Skip to content

Commit

Permalink
Additional stuff for #557
Browse files Browse the repository at this point in the history
  • Loading branch information
chriso committed Jul 29, 2016
1 parent 830873e commit e310a87
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#### HEAD

- Added an `isMD5()` validator
([#557](https://github.com/chriso/validator.js/pull/557))

#### 5.5.0

- Fixed a regex denial of service in `trim()` and `rtrim()`
Expand Down
2 changes: 0 additions & 2 deletions lib/isMD5.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ var _assertString2 = _interopRequireDefault(_assertString);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/* eslint-disable no-control-regex */
var md5 = /^[a-f0-9]{32}$/;
/* eslint-enable no-control-regex */

function isMD5(str) {
(0, _assertString2.default)(str);
Expand Down
2 changes: 0 additions & 2 deletions validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,9 +563,7 @@
return hexcolor.test(str);
}

/* eslint-disable no-control-regex */
var md5 = /^[a-f0-9]{32}$/;
/* eslint-enable no-control-regex */

function isMD5(str) {
assertString(str);
Expand Down

0 comments on commit e310a87

Please sign in to comment.