opticore-installer 1.2.50 → 1.2.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -952,13 +952,13 @@ var installerCore = async (initialProjectName2) => {
952
952
  })() : starter.map(async (value) => {
953
953
  switch (value) {
954
954
  case CGeneralMsg.starterInitValue:
955
- const providedNameIsValid = !!initialProjectName2 && !SValidate(initialProjectName2, CGeneralMsg.projectNameInvalidValue, CGeneralMsg.projectNameBadPattern, "^[a-zA-Z0-9]+$");
955
+ const providedNameIsValid = !!initialProjectName2 && !SValidate(initialProjectName2, CGeneralMsg.projectNameInvalidValue, CGeneralMsg.projectNameBadPattern, "^[a-zA-Z0-9][a-zA-Z0-9_-]*$");
956
956
  projectName = providedNameIsValid ? initialProjectName2 : await SOutputPromptText(
957
957
  CGeneralMsg.projectNameMessage,
958
958
  CGeneralMsg.projectNamePlaceholder,
959
959
  CGeneralMsg.projectNameInvalidValue,
960
960
  CGeneralMsg.projectNameBadPattern,
961
- "^[a-zA-Z0-9]+$"
961
+ "^[a-zA-Z0-9][a-zA-Z0-9_-]*$"
962
962
  );
963
963
  if (typeof projectName === "string") {
964
964
  const tpl = await templateStarter(projectName);
package/dist/index.js CHANGED
@@ -929,13 +929,13 @@ var installerCore = async (initialProjectName2) => {
929
929
  })() : starter.map(async (value) => {
930
930
  switch (value) {
931
931
  case CGeneralMsg.starterInitValue:
932
- const providedNameIsValid = !!initialProjectName2 && !SValidate(initialProjectName2, CGeneralMsg.projectNameInvalidValue, CGeneralMsg.projectNameBadPattern, "^[a-zA-Z0-9]+$");
932
+ const providedNameIsValid = !!initialProjectName2 && !SValidate(initialProjectName2, CGeneralMsg.projectNameInvalidValue, CGeneralMsg.projectNameBadPattern, "^[a-zA-Z0-9][a-zA-Z0-9_-]*$");
933
933
  projectName = providedNameIsValid ? initialProjectName2 : await SOutputPromptText(
934
934
  CGeneralMsg.projectNameMessage,
935
935
  CGeneralMsg.projectNamePlaceholder,
936
936
  CGeneralMsg.projectNameInvalidValue,
937
937
  CGeneralMsg.projectNameBadPattern,
938
- "^[a-zA-Z0-9]+$"
938
+ "^[a-zA-Z0-9][a-zA-Z0-9_-]*$"
939
939
  );
940
940
  if (typeof projectName === "string") {
941
941
  const tpl = await templateStarter(projectName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opticore-installer",
3
- "version": "1.2.50",
3
+ "version": "1.2.51",
4
4
  "description": "opticore framework installer",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",