We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89b00e2 commit ce99419Copy full SHA for ce99419
lib/fake.js
@@ -86,7 +86,12 @@ function Fake (faker) {
86
params = parameters;
87
}
88
89
- var result = fn.call(this, params);
+ var result;
90
+ if (typeof params === "string" && params.length === 0) {
91
+ result = fn.call(this);
92
+ } else {
93
+ result = fn.call(this, params);
94
+ }
95
96
// replace the found tag with the returned fake value
97
res = str.replace('{{' + token + '}}', result);
0 commit comments