Skip to content

Commit

Permalink
Bump version to 0.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
apih committed Aug 3, 2024
1 parent ae903fd commit 37431cf
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dist/locales/en.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* quival v0.3.3 (https://github.com/apih/quival)
* quival v0.3.4 (https://github.com/apih/quival)
* (c) 2023 Mohd Hafizuddin M Marzuki <hafizuddin_83@yahoo.com>
* Released under the MIT License.
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/locales/en.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 dist/locales/ms.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* quival v0.3.3 (https://github.com/apih/quival)
* quival v0.3.4 (https://github.com/apih/quival)
* (c) 2023 Mohd Hafizuddin M Marzuki <hafizuddin_83@yahoo.com>
* Released under the MIT License.
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/locales/ms.min.js

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

14 changes: 10 additions & 4 deletions dist/quival.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* quival v0.3.3 (https://github.com/apih/quival)
* quival v0.3.4 (https://github.com/apih/quival)
* (c) 2023 Mohd Hafizuddin M Marzuki <hafizuddin_83@yahoo.com>
* Released under the MIT License.
*/
Expand Down Expand Up @@ -736,10 +736,16 @@ var quival = (function (exports) {
return false;
}
checkMimes(attribute, value, parameters) {
if (this.checkFile(attribute, value)) {
return parameters.includes(value.name.split('.').pop().toLowerCase());
if (!this.checkFile(attribute, value)) {
return false;
}
return false;
if (parameters.includes('jpg') && !parameters.includes('jpeg')) {
parameters.push('jpeg');
}
if (parameters.includes('jpeg') && !parameters.includes('jpg')) {
parameters.push('jpg');
}
return parameters.includes(value.name.split('.').pop().toLowerCase());
}
checkExtensions(attribute, value, parameters) {
return this.checkMimes(attribute, value, parameters);
Expand Down
4 changes: 2 additions & 2 deletions dist/quival.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quival",
"version": "0.3.3",
"version": "0.3.4",
"description": "Data validation à la Laravel Validation",
"author": "Mohd Hafizuddin M Marzuki <hafizuddin_83@yahoo.com>",
"license": "MIT",
Expand Down

0 comments on commit 37431cf

Please sign in to comment.