Skip to content

Commit

Permalink
Release 0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Cardoso committed Apr 29, 2016
1 parent 3ab5c1f commit 0ee02c3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# Changelog

## [0.0.2](https://github.com/uphold/uk-modulus-checking/tree/0.0.2)
## [0.0.3](https://github.com/uphold/uk-modulus-checking/tree/HEAD)

[Full Changelog](https://github.com/uphold/uk-modulus-checking/compare/0.0.2...HEAD)

**Merged pull requests:**

- Add accountNumber and sortCode length validation [\#7](https://github.com/uphold/uk-modulus-checking/pull/7) ([promag](https://github.com/promag))

## [0.0.2](https://github.com/uphold/uk-modulus-checking/tree/0.0.2) (2016-03-09)
[Full Changelog](https://github.com/uphold/uk-modulus-checking/compare/0.0.1...0.0.2)

**Merged pull requests:**
Expand Down
4 changes: 4 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ var UkModulusChecking = function () {
}, {
key: 'isValid',
value: function isValid() {
if (this.accountNumber.length < 6 || this.accountNumber.length > 10 || this.sortCode.length !== 6) {
return false;
}

var checks = this.getSortCodeChecks();

// If no range is found that contains the sorting code, there is no modulus check that can be performed.
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": "uk-modulus-checking",
"version": "0.0.2",
"version": "0.0.3",
"description": "Validate a UK bank account number against a sort code using the VocaLink modulus check",
"author": "Uphold",
"license": "MIT",
Expand Down

0 comments on commit 0ee02c3

Please sign in to comment.