Skip to content

Commit

Permalink
Fix regex which recognizes parameters (case 2 parameters in a row)
Browse files Browse the repository at this point in the history
  • Loading branch information
introfog committed Nov 3, 2024
1 parent 08498e5 commit 9ae1538
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

public class ParametersTabController extends SupportController {
private static final Logger LOGGER = LoggerFactory.getLogger(ParametersTabController.class);
private static final Pattern PARAMETERS_PATTERN = Pattern.compile("\\{(\\S+)\\}");
private static final Pattern PARAMETERS_PATTERN = Pattern.compile("\\{([^{}\\s]+)\\}");
private static final Pattern ONLY_SPACES_PATTERN = Pattern.compile("^\\s*$");
private final Label parametersText;
private final TableView<ParameterDto> parametersTable;
Expand Down

0 comments on commit 9ae1538

Please sign in to comment.