Skip to content

Commit 1986b10

Browse files
authored
Update regex to match code in core_component::is_valid_plugin_name()
I went from 5.1 back to 4.0 and only saw the regex /^[a-z](?:[a-z0-9_](?!__))*[a-z0-9]+$/ in core_component::is_valid_plugin_name()
1 parent c56165c commit 1986b10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/apis/plugintypes/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ If a plugin does not meet these requirements then it will be silently ignored.
3535
Plugin name validation takes place in `core_component::is_valid_plugin_name()` and the following regular expression is used:
3636

3737
```
38-
/^[a-z](?:[a-z0-9_](?!__))*[](a-z0-9)+$/
38+
/^[a-z](?:[a-z0-9_](?!__))*[a-z0-9]+$/
3939
```
4040

4141
:::

0 commit comments

Comments
 (0)