Skip to content

Commit

Permalink
allow '_' in state names
Browse files Browse the repository at this point in the history
  • Loading branch information
LeroyR committed Jun 6, 2024
1 parent 70bb8f9 commit 2e5e0f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private void setPrefix(String prefix) throws StateIDException {
}

private void setName(String name) throws StateIDException {
if (name.isEmpty() || !name.matches("^[a-zA-Z0-9]*$")) {
if (name.isEmpty() || !name.matches("^[a-zA-Z0-9_]*$")) {
throw new StateIDException("name must be a canonical class "
+ "name (received: \"" + name + "\")");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,7 @@ private void actionCheck(List<Action> actions) {
public void onEntry(final TransitionTarget entered) {

logger.debug("#OnEntry: " + entered.getId());
//logger.debug(this.);
actionCheck(entered.getOnEntry().getActions());

while (PAUSE && running) {
Expand Down

0 comments on commit 2e5e0f2

Please sign in to comment.