diff options
| author | Marak <[email protected]> | 2021-05-25 01:35:19 -0400 |
|---|---|---|
| committer | Marak <[email protected]> | 2021-05-25 01:35:19 -0400 |
| commit | b8d9bc9b904cb6a57db7f3c981f411a984e899cc (patch) | |
| tree | 35e6a1ebdf1f44ca6a07c1fcd06342543f92f505 | |
| parent | 3013f8c9f42581e9f4d54b3aa982de3c28eb317a (diff) | |
| download | faker-b8d9bc9b904cb6a57db7f3c981f411a984e899cc.tar.xz faker-b8d9bc9b904cb6a57db7f3c981f411a984e899cc.zip | |
Ensure that both open and close tags are present
| -rw-r--r-- | lib/fake.js | 2 |
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; } |
