Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rules to support latest standard #7

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ build/Release
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
.nyc_output/*
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# NZ Bank Account Validator

## Important: latest changes please refer to: RWT and NRWT Certificates / 2020 / Version 1.0

v0.0.4 - A small, zero dependency Javascript NZ bank account validation library that runs everywhere.

It is based on the [documentation](https://web.archive.org/web/20181009211542/https://www.ird.govt.nz/resources/9/d/9d739cde-ad76-4c49-ae08-522c62d94dd6/rwt-nrwt-spec-2016.pdf) provided by the Inland Revenue Department.
Expand Down Expand Up @@ -80,6 +82,8 @@ To run the tests locally:
```shell
npm i
npm run tests
npm run testCoverage
# check coverage
```

## Authors
Expand Down
4 changes: 2 additions & 2 deletions examples/browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<title>Browser example</title>
</head>
<body>
<script type="text/javascript" src="../lib/NZ-Bank-Account-Validator.min.js"></script>
<script type="text/javascript" src="../lib/NZ-Bank-Account-Validator.js"></script>
<script type="text/javascript">
var nzBankAccountValidator = window['NZ-Bank-Account-Validator'];
var isvalid = nzBankAccountValidator.validate('01-902-0068389-00');
var isvalid = nzBankAccountValidator.validate('01-0404-0249435-0841');
alert(isvalid);
</script>
</body>
Expand Down
14 changes: 11 additions & 3 deletions lib/NZ-Bank-Account-Validator.js

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

2 changes: 1 addition & 1 deletion lib/NZ-Bank-Account-Validator.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/NZ-Bank-Account-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 lib/NZ-Bank-Account-Validator.min.js.map

Large diffs are not rendered by default.

Loading