Skip to content

Commit

Permalink
Merge pull request #1184 from IgniteUI/mvenkov/lower-dash-skip-number…
Browse files Browse the repository at this point in the history
…s-12.0

In lowerDashed do not add dash before numbers - 12.0.x
  • Loading branch information
Lipata authored Dec 14, 2023
2 parents be47951 + 595171f commit d27033a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "igniteui-cli",
"version": "12.0.7",
"version": "12.0.8-beta.1",
"description": "CLI tool for creating Ignite UI projects",
"keywords": [
"CLI",
Expand Down Expand Up @@ -78,8 +78,8 @@
"all": true
},
"dependencies": {
"@igniteui/angular-templates": "~16.0.1207",
"@igniteui/cli-core": "~12.0.7",
"@igniteui/angular-templates": "~16.0.1208-beta.1",
"@igniteui/cli-core": "~12.0.8-beta.1",
"chalk": "^2.3.2",
"fs-extra": "^3.0.1",
"glob": "^7.1.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@igniteui/cli-core",
"version": "12.0.7",
"version": "12.0.8-beta.1",
"description": "Base types and functionality for Ignite UI CLI",
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/core/util/Util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,10 @@ export class Util {

/**
* lower-dashed string
* Add dash on the place of empty spaces and between lower and upper case letters.
*/
public static lowerDashed(text: string) {
const regex = new RegExp("[\\s]+|([\\p{Ll}](?=[\\p{Lu}\\p{Nd}]))", "gu");
const regex = new RegExp("[\\s]+|([\\p{Ll}\\p{Nd}](?=[\\p{Lu}]))", "gu");
const result = text.trim()
.replace(regex, "$1-")
.toLowerCase();
Expand Down
4 changes: 2 additions & 2 deletions packages/igx-templates/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@igniteui/angular-templates",
"version": "16.0.1207",
"version": "16.0.1208-beta.1",
"description": "Templates for Ignite UI for Angular projects and components",
"repository": {
"type": "git",
Expand All @@ -12,7 +12,7 @@
"author": "Infragistics",
"license": "MIT",
"dependencies": {
"@igniteui/cli-core": "~12.0.7",
"@igniteui/cli-core": "~12.0.8-beta.1",
"typescript": "~4.7.2"
}
}
6 changes: 3 additions & 3 deletions packages/ng-schematics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@igniteui/angular-schematics",
"version": "16.0.1207",
"version": "16.0.1208-beta.1",
"description": "Ignite UI for Angular Schematics for ng new and ng generate",
"repository": {
"type": "git",
Expand All @@ -20,8 +20,8 @@
"dependencies": {
"@angular-devkit/core": "~14.0.0",
"@angular-devkit/schematics": "~14.0.0",
"@igniteui/angular-templates": "~16.0.1207",
"@igniteui/cli-core": "~12.0.7",
"@igniteui/angular-templates": "~16.0.1208-beta.1",
"@igniteui/cli-core": "~12.0.8-beta.1",
"@schematics/angular": "~14.0.0",
"rxjs": "^6.6.3"
},
Expand Down

0 comments on commit d27033a

Please sign in to comment.