Skip to content

Commit 57c61f8

Browse files
committed
Tweaks
1 parent 78e4558 commit 57c61f8

File tree

5 files changed

+14
-26
lines changed

5 files changed

+14
-26
lines changed

.editorconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
root = true
22

33
[*]
4-
indent_size = 4
54
indent_style = tab
65
end_of_line = lf
76
charset = utf-8
87
trim_trailing_whitespace = true
98
insert_final_newline = true
109

11-
[*.json]
10+
[*.{json,yml}]
1211
indent_size = 2
1312
indent_style = space
1413

.jshintrc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
"bitwise": true,
33
"camelcase": true,
44
"curly": true,
5-
"eqeqeq": true,
65
"esnext": true,
76
"immed": true,
87
"newcap": true,
98
"noarg": true,
109
"node": true,
11-
"quotmark": "single",
1210
"strict": true,
1311
"undef": true,
1412
"unused": "vars"

index.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ var maestro = '(?:(?:5[0678]\\d\\d|6304|6390|67\\d\\d)\\d{8,15})';
88
var mastercard = '(?:5[1-5][0-9]{14})';
99
var visa = '(?:4[0-9]{12})(?:[0-9]{3})?';
1010

11-
/**
12-
* Generate regular expression
13-
*
14-
* @param {String} pattern
15-
* @api private
16-
*/
17-
1811
function generate(pattern) {
1912
return function (opts) {
2013
opts = opts || {};
@@ -23,10 +16,6 @@ function generate(pattern) {
2316
};
2417
}
2518

26-
/**
27-
* Module exports
28-
*/
29-
3019
module.exports = generate([
3120
americanExpress,
3221
dinersClub,
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
Copyright (c) Diego Perini
1+
The MIT License (MIT)
22

3-
Permission is hereby granted, free of charge, to any person obtaining a copy of
4-
this software and associated documentation files (the "Software"), to deal in
5-
the Software without restriction, including without limitation the rights to
6-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7-
of the Software, and to permit persons to whom the Software is furnished to do
8-
so, subject to the following conditions:
3+
Copyright (c) Kevin Mårtensson <[email protected]>
94

10-
The above copyright notice and this permission notice shall be included in all
11-
copies or substantial portions of the Software.
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
1214

1315
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1416
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1517
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1618
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1719
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19-
SOFTWARE.
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.
File renamed without changes.

0 commit comments

Comments
 (0)