Skip to content

Commit b32d12b

Browse files
ShuffleReadyandrewnicols
authored andcommitted
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 d5e67f3 commit b32d12b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
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
:::

versioned_docs/version-4.1/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
:::

versioned_docs/version-4.4/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
:::

versioned_docs/version-4.5/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
:::

versioned_docs/version-5.0/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)