diff --git a/lib/internal/Magento/Framework/App/Test/Unit/Resource/Config/_files/invalidResourcesXmlArray.php b/lib/internal/Magento/Framework/App/Test/Unit/Resource/Config/_files/invalidResourcesXmlArray.php
index aade50b4b2146..63b3442d0583d 100644
--- a/lib/internal/Magento/Framework/App/Test/Unit/Resource/Config/_files/invalidResourcesXmlArray.php
+++ b/lib/internal/Magento/Framework/App/Test/Unit/Resource/Config/_files/invalidResourcesXmlArray.php
@@ -13,30 +13,30 @@
["Element 'resource': The attribute 'name' is required but missing."],
],
'resource_name_attribute_invalid_value' => [
- '',
+ '',
[
- "Element 'resource', attribute 'name': [facet 'pattern'] The value 'testinvalidname1' is not accepted" .
- " by the pattern '[A-Za-z_]+'.",
- "Element 'resource', attribute 'name': 'testinvalidname1' is not a valid value of the atomic " .
+ "Element 'resource', attribute 'name': [facet 'pattern'] The value 'testinvalidname$' is not accepted" .
+ " by the pattern '[A-Za-z_0-9]+'.",
+ "Element 'resource', attribute 'name': 'testinvalidname$' is not a valid value of the atomic " .
"type 'nameIdentifier'.",
"Element 'resource', attribute 'name': Warning: No precomputed value available, the value was either " .
"invalid or something strange happend."
],
],
'resource_extends_attribute_invalid_value' => [
- '',
+ '',
[
- "Element 'resource', attribute 'extends': [facet 'pattern'] The value 'test1' is not accepted " .
- "by the pattern '[A-Za-z_]+'.",
- "Element 'resource', attribute 'extends': 'test1' is not a valid value of the atomic type 'nameIdentifier'."
+ "Element 'resource', attribute 'extends': [facet 'pattern'] The value 'test@' is not accepted " .
+ "by the pattern '[A-Za-z_0-9]+'.",
+ "Element 'resource', attribute 'extends': 'test@' is not a valid value of the atomic type 'nameIdentifier'."
],
],
'resource_connection_attribute_invalid_value' => [
- '',
+ '',
[
- "Element 'resource', attribute 'connection': [facet 'pattern'] The value 'test1' is not accepted " .
- "by the pattern '[A-Za-z_]+'.",
- "Element 'resource', attribute 'connection': 'test1' is not a valid value of the atomic" .
+ "Element 'resource', attribute 'connection': [facet 'pattern'] The value 'test#' is not accepted " .
+ "by the pattern '[A-Za-z_0-9]+'.",
+ "Element 'resource', attribute 'connection': 'test#' is not a valid value of the atomic" .
" type 'nameIdentifier'."
],
],
diff --git a/lib/internal/Magento/Framework/App/Test/Unit/Resource/Config/_files/valid_resources.xml b/lib/internal/Magento/Framework/App/Test/Unit/Resource/Config/_files/valid_resources.xml
index 511edaf040b90..80cbd17436102 100644
--- a/lib/internal/Magento/Framework/App/Test/Unit/Resource/Config/_files/valid_resources.xml
+++ b/lib/internal/Magento/Framework/App/Test/Unit/Resource/Config/_files/valid_resources.xml
@@ -6,6 +6,6 @@
*/
-->
-
+
diff --git a/lib/internal/Magento/Framework/App/etc/resources.xsd b/lib/internal/Magento/Framework/App/etc/resources.xsd
index ee95beeea44f6..4bd59f3d2f416 100644
--- a/lib/internal/Magento/Framework/App/etc/resources.xsd
+++ b/lib/internal/Magento/Framework/App/etc/resources.xsd
@@ -37,11 +37,11 @@
- Name identifier can contain only [A-Za-z_].
+ Name identifier can contain only [A-Za-z_0-9].
-
+