Skip to content

Commit

Permalink
improve performance of regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
kwin committed Mar 22, 2023
1 parent cdd9571 commit d5605dc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public class OsgiConfigurationParserValidator implements DocumentViewXmlValidato

private static final String SLING_OSGI_CONFIG_NODETYPE = "sling:OsgiConfig";

private static final String OSGI_CONFIG_NODE_PATH = "/(?:[^/]*/){0,4}?config(?:\\..*)?/.*";
private static final String OSGI_CONFIG_NODE_PATH = "/(?:[^/]*/){0,4}?config(?:\\.[^/]*)?/.*";

private static final Pattern OSGI_CONFIG_NODE_PATH_PATTERN = Pattern.compile(OSGI_CONFIG_NODE_PATH);

/**
Expand Down

0 comments on commit d5605dc

Please sign in to comment.