Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.16.5",
"version": "3.16.6",
"granularPathspec": false,
"packages": [
"packages/*"
Expand All @@ -20,4 +20,4 @@
"**/*.e2e.ts",
"**/*.md"
]
}
}
4 changes: 2 additions & 2 deletions packages/clean-architecture/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/clean-architecture/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@baloise/web-app-clean-architecture",
"version": "3.16.5",
"version": "3.16.6",
"description": "Utilities for Baloise Web Applications",
"repository": {
"type": "git",
Expand Down
26 changes: 13 additions & 13 deletions packages/form-vue/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/form-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@baloise/web-app-form-vue",
"version": "3.16.5",
"version": "3.16.6",
"description": "Utilities for Baloise Web Applications",
"repository": {
"type": "git",
Expand Down Expand Up @@ -50,6 +50,6 @@
},
"gitHead": "6bc39fcc60a2294d11940527d9a051f21ca01e42",
"dependencies": {
"@baloise/web-app-validators": "^3.16.5"
"@baloise/web-app-validators": "^3.16.6"
}
}
26 changes: 13 additions & 13 deletions packages/pipes-angular/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/pipes-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@baloise/web-app-pipes-angular",
"version": "3.16.5",
"version": "3.16.6",
"description": "Utilities for Baloise Web Applications",
"repository": {
"type": "git",
Expand Down Expand Up @@ -29,7 +29,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@baloise/web-app-pipes": "^3.16.5",
"@baloise/web-app-pipes": "^3.16.6",
"tslib": "^2.2.0"
},
"peerDependencies": {
Expand Down
26 changes: 13 additions & 13 deletions packages/pipes-vue/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/pipes-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@baloise/web-app-pipes-vue",
"version": "3.16.5",
"version": "3.16.6",
"description": "Utilities for Baloise Web Applications",
"repository": {
"type": "git",
Expand Down Expand Up @@ -48,6 +48,6 @@
},
"gitHead": "6bc39fcc60a2294d11940527d9a051f21ca01e42",
"dependencies": {
"@baloise/web-app-pipes": "^3.16.5"
"@baloise/web-app-pipes": "^3.16.6"
}
}
14 changes: 7 additions & 7 deletions packages/pipes/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/pipes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@baloise/web-app-pipes",
"version": "3.16.5",
"version": "3.16.6",
"description": "Utilities for Baloise Web Applications",
"scripts": {
"banner": "node ../../.build/banner.js pipes",
Expand Down Expand Up @@ -39,7 +39,7 @@
},
"homepage": "https://github.com/baloise/web-app-utils",
"dependencies": {
"@baloise/web-app-utils": "^3.16.5",
"@baloise/web-app-utils": "^3.16.6",
"lodash.capitalize": "^4.2.1",
"lodash.isarray": "^4.0.0",
"lodash.isstring": "^4.0.1",
Expand Down
3 changes: 3 additions & 0 deletions packages/pipes/src/balClaimNumber.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ describe('balClaimNumber', () => {
test('should format claimcenter claim number with zeros correctly', () => {
expect(balClaimNumber(400045678020)).toBe('4.45678.2.0')
})
test('should format claimcenter claim number with zeros correctly', () => {
expect(balClaimNumber(100000000000)).toBe('1.0.0.0')
})
})
4 changes: 3 additions & 1 deletion packages/pipes/src/balClaimNumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const CLAIM_CENTER_CLAIM_NUMBER = 12
* balClaimNumber('400045678221') // 4.45678.22.1
* balClaimNumber('400045678021') // 4.45678.2.1
* balClaimNumber('400045678020') // 4.45678.2.0
* balClaimNumber('400000000000') // 4.0.0.0
* ```
*/
export function balClaimNumber(value: string | undefined | null | number): string {
Expand Down Expand Up @@ -42,5 +43,6 @@ function handleClaimCenterClaimNumber(value: string): string {
}

function removeLeadingZeros(str: string): string {
return str.replace(/^0+/, '')
const formatedValue = str.replace(/^0+/, '')
return formatedValue.length == 0 ? '0' : formatedValue
}
4 changes: 2 additions & 2 deletions packages/unsupported-browsers/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading