🐛 extend regex for macro parsing

- extend the regex to include "." to parse decimal values for
the parameter Dialog of the macro

Fixes #76
This commit is contained in:
thelastWallE 2021-12-28 16:53:13 +01:00
parent 8c2d8d054e
commit 4fc646598a
1 changed files with 16 additions and 16 deletions

View File

@ -23,7 +23,7 @@ $(function() {
self.macroName = ko.observable();
var paramObjRegex = /{(.*?)}/g;
var keyValueRegex = /(\w*)\s*:\s*([\w\s°"|]*)/g;
var keyValueRegex = /(\w*)\s*:\s*([\w\s°"|\.]*)/g;
self.process = function(macro) {
self.macro = macro.macro();