Skip to content

Commit f77fd23

Browse files
committed
Release 4.0.2
1 parent a5c1de5 commit f77fd23

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

CHANGELOG.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
# Changelog
22

3+
## [v4.0.2](https://github.com/uphold/validator.js-asserts/tree/v4.0.2) (2019-10-08)
4+
5+
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v4.0.1...v4.0.2)
6+
7+
**Fixed bugs:**
8+
9+
- Fix Bank Identifier Code assert [\#181](https://github.com/uphold/validator.js-asserts/pull/181) ([pedrobranco](https://github.com/pedrobranco))
10+
11+
**Merged pull requests:**
12+
13+
- Add MIT license [\#179](https://github.com/uphold/validator.js-asserts/pull/179) ([zangetsouu](https://github.com/zangetsouu))
14+
315
## [v4.0.1](https://github.com/uphold/validator.js-asserts/tree/v4.0.1) (2019-06-05)
16+
417
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v4.0.0...v4.0.1)
518

619
**Fixed bugs:**
@@ -12,6 +25,7 @@
1225
- Fix date tests on node 10 [\#178](https://github.com/uphold/validator.js-asserts/pull/178) ([rplopes](https://github.com/rplopes))
1326

1427
## [v4.0.0](https://github.com/uphold/validator.js-asserts/tree/v4.0.0) (2019-02-18)
28+
1529
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v3.1.0...v4.0.0)
1630

1731
**Implemented enhancements:**
@@ -23,15 +37,18 @@
2337
- Update google-libphonenumber [\#173](https://github.com/uphold/validator.js-asserts/pull/173) ([rplopes](https://github.com/rplopes))
2438
- Fix mixed content issue preventing page load [\#170](https://github.com/uphold/validator.js-asserts/pull/170) ([hitmanmcc](https://github.com/hitmanmcc))
2539
- Update ownership [\#169](https://github.com/uphold/validator.js-asserts/pull/169) ([ruimarinho](https://github.com/ruimarinho))
40+
- Update README to include new asserts [\#165](https://github.com/uphold/validator.js-asserts/pull/165) ([kurayama](https://github.com/kurayama))
2641

2742
## [v3.1.0](https://github.com/uphold/validator.js-asserts/tree/v3.1.0) (2016-10-20)
43+
2844
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v3.0.2...v3.1.0)
2945

3046
**Implemented enhancements:**
3147

3248
- New date asserts [\#164](https://github.com/uphold/validator.js-asserts/pull/164) ([kurayama](https://github.com/kurayama))
3349

3450
## [v3.0.2](https://github.com/uphold/validator.js-asserts/tree/v3.0.2) (2016-10-10)
51+
3552
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v3.0.1...v3.0.2)
3653

3754
**Closed issues:**
@@ -43,36 +60,40 @@
4360
- Allow custom date formats [\#150](https://github.com/uphold/validator.js-asserts/pull/150) ([kurayama](https://github.com/kurayama))
4461

4562
## [v3.0.1](https://github.com/uphold/validator.js-asserts/tree/v3.0.1) (2016-08-04)
63+
4664
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v3.0.0...v3.0.1)
4765

4866
**Implemented enhancements:**
4967

5068
- Add `BigNumberEqualTo` assert [\#117](https://github.com/uphold/validator.js-asserts/pull/117) ([nunofgs](https://github.com/nunofgs))
5169

5270
## [v3.0.0](https://github.com/uphold/validator.js-asserts/tree/v3.0.0) (2016-05-13)
71+
5372
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v2.3.1...v3.0.0)
5473

5574
**Implemented enhancements:**
5675

5776
- Update [email protected] [\#110](https://github.com/uphold/validator.js-asserts/pull/110) ([ruimarinho](https://github.com/ruimarinho))
5877

5978
## [v2.3.1](https://github.com/uphold/validator.js-asserts/tree/v2.3.1) (2016-04-29)
79+
6080
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v2.3.0...v2.3.1)
6181

6282
**Merged pull requests:**
6383

64-
- Update README to include new asserts [\#165](https://github.com/uphold/validator.js-asserts/pull/165) ([kurayama](https://github.com/kurayama))
6584
- Update [email protected] [\#105](https://github.com/uphold/validator.js-asserts/pull/105) ([promag](https://github.com/promag))
6685
- Update dependencies [\#103](https://github.com/uphold/validator.js-asserts/pull/103) ([ruimarinho](https://github.com/ruimarinho))
6786

6887
## [v2.3.0](https://github.com/uphold/validator.js-asserts/tree/v2.3.0) (2016-04-14)
88+
6989
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v2.2.0...v2.3.0)
7090

7191
**Implemented enhancements:**
7292

7393
- Add Taxpayer Identification Number assert [\#66](https://github.com/uphold/validator.js-asserts/pull/66) ([nunofgs](https://github.com/nunofgs))
7494

7595
## [v2.2.0](https://github.com/uphold/validator.js-asserts/tree/v2.2.0) (2016-04-10)
96+
7697
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v2.1.0...v2.2.0)
7798

7899
**Implemented enhancements:**
@@ -84,6 +105,7 @@
84105
- Add UkModulusChecking assert [\#79](https://github.com/uphold/validator.js-asserts/pull/79) ([franciscocardoso](https://github.com/franciscocardoso))
85106

86107
## [v2.1.0](https://github.com/uphold/validator.js-asserts/tree/v2.1.0) (2016-04-10)
108+
87109
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v2.0.2...v2.1.0)
88110

89111
**Merged pull requests:**
@@ -92,6 +114,7 @@
92114
- Add format option to date assert [\#95](https://github.com/uphold/validator.js-asserts/pull/95) ([franciscocardoso](https://github.com/franciscocardoso))
93115

94116
## [v2.0.2](https://github.com/uphold/validator.js-asserts/tree/v2.0.2) (2016-04-06)
117+
95118
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v2.0.1...v2.0.2)
96119

97120
**Implemented enhancements:**
@@ -105,6 +128,7 @@
105128
- Remove jscs inline camel case rules [\#65](https://github.com/uphold/validator.js-asserts/pull/65) ([nunofgs](https://github.com/nunofgs))
106129

107130
## [v2.0.1](https://github.com/uphold/validator.js-asserts/tree/v2.0.1) (2016-01-26)
131+
108132
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v2.0.0...v2.0.1)
109133

110134
**Fixed bugs:**
@@ -116,6 +140,7 @@
116140
- Add module exports [\#64](https://github.com/uphold/validator.js-asserts/pull/64) ([ruimarinho](https://github.com/ruimarinho))
117141

118142
## [v2.0.0](https://github.com/uphold/validator.js-asserts/tree/v2.0.0) (2016-01-21)
143+
119144
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v1.1.0...v2.0.0)
120145

121146
**Implemented enhancements:**
@@ -148,6 +173,7 @@
148173
- [email protected] breaks build 🚨 [\#39](https://github.com/uphold/validator.js-asserts/pull/39) ([greenkeeperio-bot](https://github.com/greenkeeperio-bot))
149174

150175
## [v1.1.0](https://github.com/uphold/validator.js-asserts/tree/v1.1.0) (2015-10-16)
176+
151177
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v1.0.0...v1.1.0)
152178

153179
**Merged pull requests:**
@@ -158,6 +184,7 @@
158184
- Add International Bank Account Number assert [\#23](https://github.com/uphold/validator.js-asserts/pull/23) ([nunofgs](https://github.com/nunofgs))
159185

160186
## [v1.0.0](https://github.com/uphold/validator.js-asserts/tree/v1.0.0) (2015-08-11)
187+
161188
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v0.0.7...v1.0.0)
162189

163190
**Merged pull requests:**
@@ -166,13 +193,15 @@
166193
- Move dependencies to peer dependencies [\#19](https://github.com/uphold/validator.js-asserts/pull/19) ([ruimarinho](https://github.com/ruimarinho))
167194

168195
## [v0.0.7](https://github.com/uphold/validator.js-asserts/tree/v0.0.7) (2015-05-25)
196+
169197
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v0.0.6...v0.0.7)
170198

171199
**Merged pull requests:**
172200

173201
- Add null or date assert [\#17](https://github.com/uphold/validator.js-asserts/pull/17) ([nunofgs](https://github.com/nunofgs))
174202

175203
## [v0.0.6](https://github.com/uphold/validator.js-asserts/tree/v0.0.6) (2015-05-25)
204+
176205
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v0.0.5...v0.0.6)
177206

178207
**Merged pull requests:**
@@ -181,6 +210,7 @@
181210
- Add documentation for uri assert [\#15](https://github.com/uphold/validator.js-asserts/pull/15) ([ruimarinho](https://github.com/ruimarinho))
182211

183212
## [v0.0.5](https://github.com/uphold/validator.js-asserts/tree/v0.0.5) (2015-05-24)
213+
184214
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v0.0.4...v0.0.5)
185215

186216
**Merged pull requests:**
@@ -190,13 +220,15 @@
190220
- Add URI assert [\#12](https://github.com/uphold/validator.js-asserts/pull/12) ([nunofgs](https://github.com/nunofgs))
191221

192222
## [v0.0.4](https://github.com/uphold/validator.js-asserts/tree/v0.0.4) (2015-01-16)
223+
193224
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v0.0.3...v0.0.4)
194225

195226
**Merged pull requests:**
196227

197228
- Update bignumber.js version [\#7](https://github.com/uphold/validator.js-asserts/pull/7) ([fixe](https://github.com/fixe))
198229

199230
## [v0.0.3](https://github.com/uphold/validator.js-asserts/tree/v0.0.3) (2014-12-01)
231+
200232
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v0.0.2...v0.0.3)
201233

202234
**Merged pull requests:**
@@ -207,10 +239,14 @@
207239
- Add date diff less and greater than asserts [\#3](https://github.com/uphold/validator.js-asserts/pull/3) ([ruimarinho](https://github.com/ruimarinho))
208240

209241
## [v0.0.2](https://github.com/uphold/validator.js-asserts/tree/v0.0.2) (2014-11-26)
242+
210243
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/v0.0.1...v0.0.2)
211244

212245
**Merged pull requests:**
213246

214247
- Expose min and max in `NullOrString` [\#2](https://github.com/uphold/validator.js-asserts/pull/2) ([fixe](https://github.com/fixe))
215248
- Add `Email` assert [\#1](https://github.com/uphold/validator.js-asserts/pull/1) ([fixe](https://github.com/fixe))
216249

250+
## [v0.0.1](https://github.com/uphold/validator.js-asserts/tree/v0.0.1) (2014-11-12)
251+
252+
[Full Changelog](https://github.com/uphold/validator.js-asserts/compare/2a36ab31a3ad1998e2f4e9f41041b3c587aaa1ed...v0.0.1)

dist/asserts/bank-identifier-code-assert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var _validator = require('validator.js');
1111
* Bic regex.
1212
*/
1313

14-
const bic = /^[a-zA-Z]{6}[a-zA-Z0-9]{2}([a-zA-Z0-9]{3})?$/;
14+
const bic = /^[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}$/i;
1515

1616
/**
1717
* Export `BankIdentifierCodeAssert`.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "validator.js-asserts",
3-
"version": "4.0.1",
3+
"version": "4.0.2",
44
"description": "A set of extra asserts for validator.js.",
55
"license": "MIT",
66
"contributors": [

0 commit comments

Comments
 (0)