Skip to content

Commit

Permalink
Changes allowed route name prefixes
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Jul 11, 2023
1 parent 812bc1f commit 93d8daf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ The artifact will include extension settings for the sample Hello World extensio
```
You can optionally add `routeNamePrefix:` as a value to the yml. This setting allows you to prefix all your registered NamedRoute names.
The value must be alphanumeric and can contain `:`, `/`, `*`, `_` in the name.
The value must be alphanumeric and can contain `-`, `_` in the name.
Start the sample extension with `./bin/opensearch-sdk-java`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
*/
public abstract class BaseExtensionRestHandler implements ExtensionRestHandler {

private static final String VALID_ROUTE_PREFIX_PATTERN = "^[a-zA-Z0-9:/*_]*$";
private static final String VALID_ROUTE_PREFIX_PATTERN = "^[a-zA-Z0-9-_]*$";

private String routeNamePrefix;

Expand Down

0 comments on commit 93d8daf

Please sign in to comment.