@bedrockio/yada 1.0.22 → 1.0.23
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/dist/cjs/string.js +1 -1
- package/package.json +1 -1
- package/src/string.js +1 -1
package/dist/cjs/string.js
CHANGED
|
@@ -10,7 +10,7 @@ var _errors = require("./errors");
|
|
|
10
10
|
var _password = require("./password");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
const SLUG_REG = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
13
|
-
const PHONE_REG =
|
|
13
|
+
const PHONE_REG = /^\+\d{1,3}\d{3,14}$/;
|
|
14
14
|
const PHONE_DESCRIPTION = 'A phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format.';
|
|
15
15
|
class StringSchema extends _TypeSchema.default {
|
|
16
16
|
constructor() {
|
package/package.json
CHANGED
package/src/string.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from './password';
|
|
12
12
|
|
|
13
13
|
const SLUG_REG = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
14
|
-
const PHONE_REG =
|
|
14
|
+
const PHONE_REG = /^\+\d{1,3}\d{3,14}$/;
|
|
15
15
|
|
|
16
16
|
const PHONE_DESCRIPTION =
|
|
17
17
|
'A phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format.';
|