Skip to content

Commit cbed378

Browse files
committed
Fix subspace name regex
1 parent 484b987 commit cbed378

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎libraries/rush-lib/src/api/SubspacesConfiguration.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { RushConstants } from '../logic/RushConstants';
1414
* Example: "my-subspace"
1515
*/
1616
export const SUBSPACE_NAME_REGEXP: RegExp = /^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;
17-
export const SPLIT_WORKSPACE_SUBSPACE_NAME_REGEXP: RegExp = /^[a-z0-9]*([+_\-a-z0-9]+)*$/;
17+
export const SPLIT_WORKSPACE_SUBSPACE_NAME_REGEXP: RegExp = /^[a-z0-9][+_\-a-z0-9]*$/;
1818

1919
/**
2020
* This represents the JSON data structure for the "subspaces.json" configuration file.

0 commit comments

Comments
 (0)