aboutsummaryrefslogtreecommitdiff
path: root/lib/helpers.js
diff options
context:
space:
mode:
authorCoDEmanX <[email protected]>2016-04-07 11:31:33 +0200
committerCoDEmanX <[email protected]>2016-04-07 14:14:46 +0200
commit94b65cbf334ea5ef1c4838711bc0945125f7c779 (patch)
tree020ce2b1eec3e949ce8658ebe85bf83255453ae8 /lib/helpers.js
parent38e890eeced869b41cf0047ef28740bfb79d1c01 (diff)
downloadfaker-94b65cbf334ea5ef1c4838711bc0945125f7c779.tar.xz
faker-94b65cbf334ea5ef1c4838711bc0945125f7c779.zip
Add IBAN and BIC generator functions
Diffstat (limited to 'lib/helpers.js')
-rw-r--r--lib/helpers.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/helpers.js b/lib/helpers.js
index ac3398d7..8585888b 100644
--- a/lib/helpers.js
+++ b/lib/helpers.js
@@ -61,14 +61,14 @@ var Helpers = function (faker) {
*/
self.replaceSymbols = function (string) {
string = string || "";
- var alpha = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
+ var alpha = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
var str = '';
for (var i = 0; i < string.length; i++) {
if (string.charAt(i) == "#") {
str += faker.random.number(9);
- } else if (string.charAt(i) == "?") {
- str += faker.random.arrayElement(alpha);
+ } else if (string.charAt(i) == "?") {
+ str += faker.random.arrayElement(alpha);
} else {
str += string.charAt(i);
}