Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoika committed Nov 18, 2024
1 parent c3e352d commit 68cb964
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
value="#{default_selection ? spaceRefFormController.setDefaultSpace(workflowController.workitem,options):''}" />
<!-- (DO NOT REMOVE) default selection = #{space_ref} -->
<ui:fragment rendered="#{!readonly}">
<h:selectOneMenu style="width:20em;" required="#{empty required?false:required}"
<h:selectOneMenu style="" required="#{empty required?false:required}"
value="#{workflowController.workitem.item['space.ref']}">
<f:selectItem itemLabel=""></f:selectItem>
<c:forEach items="#{spaceRefFormController.getSpaces(workflowController.workitem, options)}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,21 @@ public void testFilePDFRegex() throws PluginException {

}

/**
* Teste regex patterns
*
* @throws PluginException
*/
@Test
public void testSpaceRefFormControllerRegex() throws PluginException {

String _regex = "Imixs GmbH\\..*";
Pattern pattern = Pattern.compile(_regex);

// pattern.matcher(space.getItemValueString("name"))
Assert.assertFalse(pattern.matcher("Imixs GmbH").matches());
Assert.assertTrue(pattern.matcher("Imixs GmbH.London").matches());

}

}

0 comments on commit 68cb964

Please sign in to comment.