From 024a5e7d752a43d0e7b428cb9f67966144d9c109 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Thu, 6 Mar 2014 07:50:49 -0500 Subject: [PATCH] edit-jobset.tt: Retain old inputs with dashes in their name Fixes #149 --- src/root/edit-jobset.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/root/edit-jobset.tt b/src/root/edit-jobset.tt index 87c93bb8..14bf3ddc 100644 --- a/src/root/edit-jobset.tt +++ b/src/root/edit-jobset.tt @@ -183,7 +183,7 @@ var inputs = {}; for (var i = 0; i < formElements.length; i++) { var elem = formElements[i]; - var match = elem.name.match(/^input-(\w+)-(\w+)$/); + var match = elem.name.match(/^input-([A-Za-z][\w-]*)-(\w+)$/); if (match === null) { data[elem.name] = elem.value; } else {