@corbit2/node-red-corbit-sms 1.0.2 → 1.0.3
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/CHANGELOG.md +4 -0
- package/nodes/lib/corbit.js +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.3 (2026-11-08)
|
|
4
|
+
|
|
5
|
+
- A Saudi mobile number must have exactly 9 digits after 966 (9665XXXXXXXX). Numbers with a digit too many or too few, such as 9665012345678, are rejected before sending instead of going to a wrong number.
|
|
6
|
+
|
|
3
7
|
## 1.0.2 (2026-11-08)
|
|
4
8
|
|
|
5
9
|
- Lists of numbers are read like the Corbit SMS app: the Arabic comma and semicolon (« ، » « ؛ », typed by the Arabic iPhone keyboard) and tabs (from a spreadsheet) separate numbers too, and numbers separated only by spaces are read one by one. A number copied from phone contacts with spaces, such as `+966 50 123 4567`, stays one number.
|
package/nodes/lib/corbit.js
CHANGED
|
@@ -56,6 +56,8 @@ function normalizeNumber(raw) {
|
|
|
56
56
|
}
|
|
57
57
|
// "+966 (0)50 …": drop the trunk zero after the Saudi country code.
|
|
58
58
|
if (/^9660\d{9}$/.test(digits)) digits = '966' + digits.slice(4);
|
|
59
|
+
// A Saudi mobile number is exactly 9665 + 8 digits; anything else would reach a wrong number.
|
|
60
|
+
if (digits.startsWith('9665') && !/^9665\d{8}$/.test(digits)) return undefined;
|
|
59
61
|
return /^[1-9]\d{7,14}$/.test(digits) ? digits : undefined;
|
|
60
62
|
}
|
|
61
63
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corbit2/node-red-corbit-sms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Node-RED node for Corbit SMS: send SMS (single and bulk), check delivery status and reports, read the balance and sender names.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|