Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
stuyam committed Aug 16, 2017
1 parent e14c4bc commit eb4c8de
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "simple-react-validator",
"description": "A simple react form validator inspired by Laravel validation.",
"main": "dist/simple-react-validator.min.js",
"version": "0.0.3",
"version": "0.0.4",
"authors": [
"Stuart Yamartino"
],
Expand Down
2 changes: 1 addition & 1 deletion dist/simple-react-validator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Simple React Validator v0.0.3 | Created By Dockwa | MIT License | 2017
// Simple React Validator v0.0.4 | Created By Dockwa | MIT License | 2017
;(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(['react'], factory);
Expand Down
2 changes: 1 addition & 1 deletion dist/simple-react-validator.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var inject = require('gulp-inject-string')
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var babel = require('gulp-babel');
var HEADER_COMMENT = '// Simple React Validator v0.0.3 | Created By Dockwa | MIT License | 2017\n';
var HEADER_COMMENT = '// Simple React Validator v0.0.4 | Created By Dockwa | MIT License | 2017\n';

var gutil = require('gulp-util');

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-react-validator",
"version": "0.0.3",
"version": "0.0.4",
"description": "A simple react form validator inspired by Laravel validation.",
"main": "dist/simple-react-validator.min.js",
"dependencies": {},
Expand Down
6 changes: 3 additions & 3 deletions src/simple-react-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ class SimpleReactValidator{
this.fields[field] = false;
if(this.messagesShown){
message = customErrors[rule] ||
customErrors.default ||
this.rules[rule].message.replace(':attribute', field.replace(/_/g, ' '));
customErrors.default ||
this.rules[rule].message.replace(':attribute', field.replace(/_/g, ' '));

if(options.length > 0 && this.rules[rule].hasOwnProperty('messageReplace')){
return this._reactErrorElement(this.rules[rule].messageReplace(message, options));
Expand Down Expand Up @@ -106,4 +106,4 @@ class SimpleReactValidator{
_testRegex(value, regex){
return value.toString().match(regex) !== null;
}
}
}

0 comments on commit eb4c8de

Please sign in to comment.