Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

Commit

Permalink
Updates fixPhoneNumber and README (patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Aug 18, 2019
1 parent b236cec commit 159ca90
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ Saves result to `data/avtaler-downloaded.json`
$ node utils/check-avtaler-template.js
```

### `send-sms-messages`

Generates and sends sms for every avtale in `data/avtaler-query.json`

```
$ node utils/send-sms-messages.js
```

# License

[MIT](LICENSE)
2 changes: 1 addition & 1 deletion lib/get-mobile-number.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const generateSystemToken = require('./generate-token')
const logger = require('./logger')

function fixPhoneNumber (phone) {
phone = phone.replace('+47', '47')
phone = phone.replace(/\D+/g, '')
return phone.length === 8 ? `47${phone}` : phone
}

Expand Down

0 comments on commit 159ca90

Please sign in to comment.