Skip to content

Commit

Permalink
Fix model juggling in contact forms
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Jun 30, 2017
1 parent bffc0f9 commit b4722ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medic-configurer-beta",
"version": "1.0.59",
"version": "1.0.61",
"description": "Configure Medic Mobile deployments",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/convert-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function executableAvailable() {
}

const shiftThingsAroundInTheModel = (path, xml) => {
const baseName = fs.path.parse(path).name;
const baseName = fs.path.parse(path).name.replace(/-(create|edit)$/, '');
let matchedBlock;

const matcher = new RegExp(`\\s*<${baseName}>[\\s\\S]*</${baseName}>\\s*(\\r|\\n)`);
Expand Down

0 comments on commit b4722ca

Please sign in to comment.