Index: lib/synchronizer.js |
=================================================================== |
--- a/lib/synchronizer.js |
+++ b/lib/synchronizer.js |
@@ -160,18 +160,15 @@ |
}; |
for (let i = 1; i < lines.length; i++) |
{ |
- let match = /^\s*!\s*(?:(\w+)\s*:\s*(.*)|\S)/.exec(lines[i]); |
+ let match = /^\s*!\s*(.*?)\s*:\s*(.*)/.exec(lines[i]); |
if (!match) |
break; |
- if (typeof match[1] != "undefined") |
+ let keyword = match[1].toLowerCase(); |
+ if (params.hasOwnProperty(keyword)) |
{ |
- let keyword = match[1].toLowerCase(); |
- if (params.hasOwnProperty(keyword)) |
- { |
- params[keyword] = match[2]; |
- lines.splice(i--, 1); |
- } |
+ params[keyword] = match[2]; |
+ lines.splice(i--, 1); |
} |
} |