fix: bring back the colon to the regex

Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com>
This commit is contained in:
Juan Pablo Garcia Ripa
2025-10-21 17:18:30 +02:00
parent 9a16824fdb
commit 7d15a665c2
+2 -2
View File
@@ -19,9 +19,9 @@
*
* @remarks
* keys must only contain the letters `a` through `z` and digits, in groups separated by
* dashes or underscores. Additionally, the very first character of each such group
* dashes or underscores and colon. Additionally, the very first character of each such group
* must be a letter, not a digit
*
* @public
*/
export const CONFIG_KEY_PART_PATTERN = /^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$/i;
export const CONFIG_KEY_PART_PATTERN = /^[a-z][a-z0-9]*(?:[-_:][a-z0-9]+)*$/i;