aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarak <[email protected]>2021-05-25 01:35:19 -0400
committerMarak <[email protected]>2021-05-25 01:35:19 -0400
commitb8d9bc9b904cb6a57db7f3c981f411a984e899cc (patch)
tree35e6a1ebdf1f44ca6a07c1fcd06342543f92f505 /lib
parent3013f8c9f42581e9f4d54b3aa982de3c28eb317a (diff)
downloadfaker-b8d9bc9b904cb6a57db7f3c981f411a984e899cc.tar.xz
faker-b8d9bc9b904cb6a57db7f3c981f411a984e899cc.zip
Ensure that both open and close tags are present
Diffstat (limited to 'lib')
-rw-r--r--lib/fake.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fake.js b/lib/fake.js
index 186ca274..068808da 100644
--- a/lib/fake.js
+++ b/lib/fake.js
@@ -36,7 +36,7 @@ function Fake (faker) {
var end = str.search('}}');
// if no {{ and }} is found, we are done
- if (start === -1 && end === -1) {
+ if (start === -1 || end === -1) {
return str;
}