Skip to content

Commit

Permalink
chore(release): bump version number to 10.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Hariom Sharma committed Nov 10, 2018
1 parent 6bb8daf commit 5c52a5f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<a name="10.19.0"></a>
# [10.19.0](https://github.com/harryy2510/ngx-img/compare/v10.18.0...v10.19.0) (2018-11-10)



<a name="10.18.0"></a>
# [10.18.0](https://github.com/harryy2510/ngx-img/compare/v10.17.0...v10.18.0) (2018-11-10)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ngx-img",
"description": "Angular Image Upload &amp; Crop",
"version": "10.18.0",
"version": "10.19.0",
"filename": "./src/ngx-img.js",
"homepage": "http://github.com/harryy2510/ngx-img",
"author": {
Expand Down
3 changes: 2 additions & 1 deletion src/module/component/ngx-img.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ export class NgxImgComponent implements OnInit, OnDestroy {

validate() {
this.errors = [];
if (this._config.fileType.length !== 0 && this._config.fileType.indexOf(this.file.type) === -1 && this._config.fileType.indexOf(`.${this.file.name.split('.').pop()}`) === -1) {
if (this._config.fileType.length !== 0 &&
this._config.fileType.indexOf(this.file.type) === -1 && this._config.fileType.indexOf(`.${this.file.name.split('.').pop()}`) === -1) {
this.errors = [...this.errors, this._errorTexts.fileType];
}

Expand Down

0 comments on commit 5c52a5f

Please sign in to comment.