Skip to content

Commit

Permalink
fix: do not remove suffix from "Basic Demo"
Browse files Browse the repository at this point in the history
  • Loading branch information
javier-godoy committed Jul 3, 2024
1 parent 02c6275 commit 118dba1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ public class EnhancedRouteTabs extends Composite<EnhancedTabs> implements Before
private final Map<RouterLink, Tab> routerLinkTabMap = new LinkedHashMap<>();

public void add(String text, Class<? extends Component> target) {
text = text.replaceFirst("\\s++[Dd]emo$", "");
if (!text.equals("Basic Demo")) {
text = text.replaceFirst("\\s++[Dd]emo$", "");
}
RouterLink routerLink = getContent().addRouterLink(text, target);
routerLink.setHighlightCondition(HighlightConditions.sameLocation());
routerLink.setHighlightAction(
Expand Down

0 comments on commit 118dba1

Please sign in to comment.