From 8be24e4bc35087a621c4242f945028d2068632ef Mon Sep 17 00:00:00 2001 From: Andrew Lisowski Date: Sun, 20 May 2018 02:16:25 -0700 Subject: [PATCH] downgrade syntax for node 4 --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 5e9c0a9..6157f92 100644 --- a/index.js +++ b/index.js @@ -7,7 +7,11 @@ const defaultOptions = { rightDelimiter: '}' }; -module.exports = function attributes(md, options = defaultOptions) { +module.exports = function attributes(md, options) { + if (!options) { + options = defaultOptions; + } + const patterns = patternsConfig(options); function curlyAttrs(state) {