Skip to content
Merged
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
16 changes: 0 additions & 16 deletions .changeset/sour-plums-look.md

This file was deleted.

17 changes: 17 additions & 0 deletions packages/format/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# @obosbbl/format

## 0.3.1

### Patch Changes

- 3a52b13: allow country code for phone number input in `formatPhoneNumber()`.

Previously it was unable to format phone numbers with country codes (+47, +46), now it can.
Note that the country code will _not_ be part of the formatted output.

```js
// 🇳🇴 example
formatPhoneNumber("+4700000000"); // => '00 00 00 00'

// 🇸🇪 example
formatPhoneNumber("+46303123456"); // => '0303-12 34 56'
```

## 0.3.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/format/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@obosbbl/format",
"version": "0.3.0",
"version": "0.3.1",
"description": "A collection of formatting methods for OBOS",
"repository": {
"url": "https://github.com/code-obos/public-frontend-modules"
Expand Down