versimo 0.0.0-stage → 0.3.0
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 +34 -0
- package/LICENSE +21 -0
- package/README.md +110 -2
- package/dist/bucket.d.ts +13 -0
- package/dist/bucket.js +60 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +59 -0
- package/dist/client.d.ts +31 -0
- package/dist/client.js +102 -0
- package/dist/deploy.d.ts +29 -0
- package/dist/deploy.js +29 -0
- package/dist/github/app-auth.d.ts +14 -0
- package/dist/github/app-auth.js +63 -0
- package/dist/github/client.d.ts +64 -0
- package/dist/github/client.js +127 -0
- package/dist/github/index.d.ts +4 -0
- package/dist/github/index.js +4 -0
- package/dist/github/tags.d.ts +20 -0
- package/dist/github/tags.js +56 -0
- package/dist/github/webhook.d.ts +5 -0
- package/dist/github/webhook.js +23 -0
- package/dist/health.d.ts +50 -0
- package/dist/health.js +68 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +12 -0
- package/dist/monitor.d.ts +67 -0
- package/dist/monitor.js +148 -0
- package/dist/posthog.d.ts +42 -0
- package/dist/posthog.js +96 -0
- package/dist/provider.d.ts +28 -0
- package/dist/provider.js +51 -0
- package/dist/resolve.d.ts +5 -0
- package/dist/resolve.js +22 -0
- package/dist/semver.d.ts +11 -0
- package/dist/semver.js +56 -0
- package/dist/transitions.d.ts +14 -0
- package/dist/transitions.js +51 -0
- package/dist/types.d.ts +51 -0
- package/dist/types.js +8 -0
- package/dist/validate.d.ts +6 -0
- package/dist/validate.js +79 -0
- package/docs/api.md +214 -0
- package/docs/concepts.md +65 -0
- package/docs/github-app.md +90 -0
- package/docs/health.md +76 -0
- package/docs/porting.md +130 -0
- package/docs/record-format.md +62 -0
- package/docs/usage.md +236 -0
- package/github-app/manifest.json +19 -0
- package/package.json +63 -4
- package/schema/examples/billing.json +15 -0
- package/schema/module-record.schema.json +50 -0
package/docs/usage.md
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
# Usage
|
|
2
|
+
|
|
3
|
+
## Server
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { createClient } from 'versimo';
|
|
7
|
+
|
|
8
|
+
const versimo = createClient({
|
|
9
|
+
source: 'https://config.example.com/versimo',
|
|
10
|
+
ttlMs: 15_000,
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
app.get('/checkout', async (req, res) => {
|
|
14
|
+
const version = await versimo.version('billing', { userId: req.user.id });
|
|
15
|
+
res.json(await loadBilling(version));
|
|
16
|
+
});
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
A URL source fetches `<base>/<module>.json`. Use `{module}` in the URL to control the shape, for example `https://config.example.com/api?m={module}`.
|
|
20
|
+
|
|
21
|
+
A source can also be a function. It receives the module slug and returns a record, or a promise of one.
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
const versimo = createClient({
|
|
25
|
+
source: async (module) => db.versimoRecords.findOne({ module }),
|
|
26
|
+
});
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Records are checked with `validateRecord` when fetched. An invalid record throws a `VersimoError` with code `INVALID_RECORD`. Records are cached for `ttlMs` (30 seconds by default). If the source fails after the cache expires, the client serves the stale record instead of failing.
|
|
30
|
+
|
|
31
|
+
## Browser
|
|
32
|
+
|
|
33
|
+
Versimo uses only `fetch`, `TextEncoder` and standard built-ins.
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
import { createClient } from 'versimo';
|
|
37
|
+
|
|
38
|
+
const versimo = createClient({ source: '/versimo' });
|
|
39
|
+
const version = await versimo.version('search', { userId: currentUserId });
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Use a stable id. A signed-in user id is best. For anonymous visitors, store a random id in a cookie or local storage and reuse it, or they will move between versions.
|
|
43
|
+
|
|
44
|
+
## React
|
|
45
|
+
|
|
46
|
+
```tsx
|
|
47
|
+
import { useEffect, useState } from 'react';
|
|
48
|
+
import { createClient } from 'versimo';
|
|
49
|
+
|
|
50
|
+
const versimo = createClient({ source: '/versimo' });
|
|
51
|
+
|
|
52
|
+
export function useModuleVersion(module: string, userId: string) {
|
|
53
|
+
const [version, setVersion] = useState<string | null>(null);
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
let live = true;
|
|
56
|
+
versimo.version(module, { userId }).then((v) => live && setVersion(v));
|
|
57
|
+
return () => {
|
|
58
|
+
live = false;
|
|
59
|
+
};
|
|
60
|
+
}, [module, userId]);
|
|
61
|
+
return version;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function Billing({ userId }: { userId: string }) {
|
|
65
|
+
const version = useModuleVersion('billing', userId);
|
|
66
|
+
if (version === null) return null;
|
|
67
|
+
return version.startsWith('2.5.') ? <BillingNext /> : <BillingCurrent />;
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## React Native
|
|
72
|
+
|
|
73
|
+
Versimo works in React Native as it is. It uses `fetch` and standard built-ins. The bucket needs UTF-8 bytes, so it uses `TextEncoder` when the engine has it (Hermes does from React Native 0.74) and a small built-in encoder when it does not. Both give the same buckets.
|
|
74
|
+
|
|
75
|
+
Use a stable id. Store a random id for anonymous users, for example with AsyncStorage, and reuse it.
|
|
76
|
+
|
|
77
|
+
```tsx
|
|
78
|
+
import { useEffect, useState } from 'react';
|
|
79
|
+
import { createClient } from 'versimo';
|
|
80
|
+
|
|
81
|
+
const versimo = createClient({ source: 'https://config.example.com/versimo' });
|
|
82
|
+
|
|
83
|
+
export function useModuleVersion(module: string, userId: string) {
|
|
84
|
+
const [version, setVersion] = useState<string | null>(null);
|
|
85
|
+
useEffect(() => {
|
|
86
|
+
let live = true;
|
|
87
|
+
versimo
|
|
88
|
+
.version(module, { userId })
|
|
89
|
+
.then((v) => live && setVersion(v))
|
|
90
|
+
.catch(() => live && setVersion(null));
|
|
91
|
+
return () => {
|
|
92
|
+
live = false;
|
|
93
|
+
};
|
|
94
|
+
}, [module, userId]);
|
|
95
|
+
return version;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function Checkout({ userId }: { userId: string }) {
|
|
99
|
+
const version = useModuleVersion('checkout', userId);
|
|
100
|
+
if (version === null) return <CheckoutCurrent />;
|
|
101
|
+
return version.startsWith('3.1.') ? <CheckoutNext /> : <CheckoutCurrent />;
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Fall back to your current screen while the version loads or when the request fails. On a native app you ship every version inside the binary, so the version string picks between code you already have. It cannot download new code.
|
|
106
|
+
|
|
107
|
+
## OpenFeature
|
|
108
|
+
|
|
109
|
+
`VersimoProvider` follows the shape of an OpenFeature server provider. It imports nothing from OpenFeature, so Versimo stays free of dependencies. The flag key is the module slug and the value is the version string.
|
|
110
|
+
|
|
111
|
+
```ts
|
|
112
|
+
import { OpenFeature } from '@openfeature/server-sdk';
|
|
113
|
+
import { createClient, VersimoProvider } from 'versimo';
|
|
114
|
+
|
|
115
|
+
const client = createClient({ source: 'https://config.example.com/versimo' });
|
|
116
|
+
await OpenFeature.setProviderAndWait(new VersimoProvider(client));
|
|
117
|
+
|
|
118
|
+
const flags = OpenFeature.getClient();
|
|
119
|
+
const version = await flags.getStringValue('billing', '2.4.0', { targetingKey: 'user-42' });
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
| Versimo result | Variant | Reason |
|
|
123
|
+
| --- | --- | --- |
|
|
124
|
+
| User is inside the rollout | `next` | `SPLIT` |
|
|
125
|
+
| User is outside the rollout, or has no targeting key | `current` | `STATIC` |
|
|
126
|
+
| Current is unhealthy | `last` | `DISABLED` |
|
|
127
|
+
| Module not found | none | `ERROR` with `FLAG_NOT_FOUND` |
|
|
128
|
+
| Source failed | none | `ERROR` with `GENERAL` |
|
|
129
|
+
|
|
130
|
+
The default value you pass is returned on errors. Boolean, number and object evaluations return `TYPE_MISMATCH`. The provider is asynchronous, so it fits the OpenFeature server package. The OpenFeature web package expects synchronous providers, so in browsers use the client directly.
|
|
131
|
+
|
|
132
|
+
If your installed OpenFeature version types the provider differently, the provider still works at runtime. A small cast is enough.
|
|
133
|
+
|
|
134
|
+
## PostHog flags drive next
|
|
135
|
+
|
|
136
|
+
PostHog can hold the share of users on next for each module, so a rollout change needs no deploy and no record write. Versimo still does the bucketing: PostHog says how many users get next, `bucketFor` says which ones. A user lands on the same version in every language, with or without PostHog.
|
|
137
|
+
|
|
138
|
+
Set up one PostHog flag per module:
|
|
139
|
+
|
|
140
|
+
- Key `versimo-<module>`, for example `versimo-billing`.
|
|
141
|
+
- Release condition 100% of users. Do not use PostHog's own percentage.
|
|
142
|
+
- Payload `{"rollout": 25}`, a whole number from 0 to 100.
|
|
143
|
+
|
|
144
|
+
```ts
|
|
145
|
+
import { createClient, postHogRollout } from 'versimo';
|
|
146
|
+
|
|
147
|
+
const versimo = createClient({
|
|
148
|
+
source: 'https://example.com/versimo/',
|
|
149
|
+
rollout: postHogRollout({
|
|
150
|
+
apiKey: process.env.POSTHOG_PROJECT_KEY!, // phc_..., the public project key
|
|
151
|
+
host: 'https://eu.i.posthog.com', // the default, or https://us.i.posthog.com for US projects
|
|
152
|
+
}),
|
|
153
|
+
});
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
How the flag is read:
|
|
157
|
+
|
|
158
|
+
| PostHog | Share on next |
|
|
159
|
+
| --- | --- |
|
|
160
|
+
| Payload `{"rollout": n}` | n |
|
|
161
|
+
| Flag on, no usable payload | the record's `rollout` |
|
|
162
|
+
| Flag on but not served (off for the `versimo` id) | 0, everyone leaves next |
|
|
163
|
+
| Flag missing, disabled in PostHog, or PostHog down | the record's `rollout` |
|
|
164
|
+
|
|
165
|
+
Health always wins. When `healthy` is false users get last, whatever PostHog says.
|
|
166
|
+
|
|
167
|
+
One request to `/flags?v=2` serves every module, once per TTL (30 seconds by default). When PostHog cannot be reached the last good answer is kept, and with none the record's own rollout is used.
|
|
168
|
+
|
|
169
|
+
No user data goes to PostHog. The request carries only the project key and the fixed distinct id `versimo`. User ids stay in the app.
|
|
170
|
+
|
|
171
|
+
The same works in Python (`Client(source, rollout=PostHogRollout(api_key))`) and Go (`ClientOptions{Rollout: rollout}` with `NewPostHogRollout`).
|
|
172
|
+
|
|
173
|
+
You can also keep the whole record in the flag payload and use PostHog as the source. The `rollout` field of that record is read the same way.
|
|
174
|
+
|
|
175
|
+
```ts
|
|
176
|
+
import { PostHog } from 'posthog-node';
|
|
177
|
+
import { createClient, type ModuleRecord } from 'versimo';
|
|
178
|
+
|
|
179
|
+
const posthog = new PostHog(process.env.POSTHOG_PROJECT_KEY!);
|
|
180
|
+
|
|
181
|
+
const versimo = createClient({
|
|
182
|
+
source: async (module) => {
|
|
183
|
+
const payload = await posthog.getFeatureFlagPayload(`versimo-${module}`, 'versimo');
|
|
184
|
+
return (payload ?? null) as ModuleRecord | null;
|
|
185
|
+
},
|
|
186
|
+
});
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Any store works the same way. Return the record, or null when the module does not exist.
|
|
190
|
+
|
|
191
|
+
## Updating records
|
|
192
|
+
|
|
193
|
+
The transition functions are pure. Read, change, write.
|
|
194
|
+
|
|
195
|
+
```ts
|
|
196
|
+
import { promote } from 'versimo';
|
|
197
|
+
|
|
198
|
+
const record = await versimo.record('billing');
|
|
199
|
+
await store.save(promote(record, { by: 'alex' }));
|
|
200
|
+
versimo.clear('billing'); // make this process see it at once
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
Other processes see the change after their cache expires.
|
|
204
|
+
|
|
205
|
+
## versimo.dev
|
|
206
|
+
|
|
207
|
+
A project on [versimo.dev/app](https://versimo.dev/app) keeps your records for you. It gives you two keys.
|
|
208
|
+
|
|
209
|
+
The read key only reads records. It is safe in a browser bundle:
|
|
210
|
+
|
|
211
|
+
```ts
|
|
212
|
+
const versimo = createClient({ source: `https://versimo.dev/api/records/${VERSIMO_READ_KEY}` });
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
The deploy key changes modules. Keep it in CI secrets. If your pipeline already ships next, promote and rollback, tell Versimo after each step:
|
|
216
|
+
|
|
217
|
+
```sh
|
|
218
|
+
npx versimo draft app 1.4.0 # next uploaded at 0%
|
|
219
|
+
npx versimo rollout app 10
|
|
220
|
+
npx versimo promote app
|
|
221
|
+
npx versimo rollback app # after an automatic return to last
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
The command reads `VERSIMO_DEPLOY_KEY`. From code, use `createDeployClient({ key })`, which has the same calls.
|
|
225
|
+
|
|
226
|
+
## Health checks
|
|
227
|
+
|
|
228
|
+
Your monitoring decides when current is unhealthy. When it does, write the record with `healthy: false`. Users get last at once. Then call `rollback` to make it permanent, and ship the fix as a patch.
|
|
229
|
+
|
|
230
|
+
```ts
|
|
231
|
+
import { rollback } from 'versimo';
|
|
232
|
+
|
|
233
|
+
await store.save({ ...record, healthy: false });
|
|
234
|
+
// later, once you have decided
|
|
235
|
+
await store.save(rollback(record, { by: 'health-check' }));
|
|
236
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Versimo",
|
|
3
|
+
"url": "https://versimo.dev",
|
|
4
|
+
"description": "Reads module tags and opens pull requests for drafts and patches. Never pushes to main.",
|
|
5
|
+
"hook_attributes": {
|
|
6
|
+
"url": "https://versimo.dev/api/github/webhook",
|
|
7
|
+
"active": true
|
|
8
|
+
},
|
|
9
|
+
"redirect_url": "https://versimo.dev/app",
|
|
10
|
+
"callback_urls": ["https://versimo.dev/app/github/callback"],
|
|
11
|
+
"request_oauth_on_install": true,
|
|
12
|
+
"public": true,
|
|
13
|
+
"default_permissions": {
|
|
14
|
+
"metadata": "read",
|
|
15
|
+
"contents": "write",
|
|
16
|
+
"pull_requests": "write"
|
|
17
|
+
},
|
|
18
|
+
"default_events": ["create", "pull_request"]
|
|
19
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,65 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "versimo",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Release model with no staging. Resolve last, current and next versions of a module for each user.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Lucasia Ltd",
|
|
8
|
+
"homepage": "https://versimo.dev",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/luca-sia/versimo.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/luca-sia/versimo/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"release",
|
|
18
|
+
"rollout",
|
|
19
|
+
"feature-flags",
|
|
20
|
+
"openfeature",
|
|
21
|
+
"versioning"
|
|
22
|
+
],
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=20"
|
|
25
|
+
},
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"main": "./dist/index.js",
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"default": "./dist/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./github": {
|
|
35
|
+
"types": "./dist/github/index.d.ts",
|
|
36
|
+
"default": "./dist/github/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./schema": "./schema/module-record.schema.json",
|
|
39
|
+
"./package.json": "./package.json"
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist",
|
|
43
|
+
"schema",
|
|
44
|
+
"github-app",
|
|
45
|
+
"docs",
|
|
46
|
+
"README.md",
|
|
47
|
+
"CHANGELOG.md",
|
|
48
|
+
"LICENSE"
|
|
49
|
+
],
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "tsc -p tsconfig.build.json",
|
|
52
|
+
"typecheck": "tsc --noEmit",
|
|
53
|
+
"spec:generate": "node --import tsx spec/generate.ts",
|
|
54
|
+
"test": "node --import tsx --test test/*.test.ts",
|
|
55
|
+
"prepare": "npm run build"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@types/node": "^20.14.0",
|
|
59
|
+
"tsx": "^4.19.0",
|
|
60
|
+
"typescript": "^5.6.0"
|
|
61
|
+
},
|
|
62
|
+
"bin": {
|
|
63
|
+
"versimo": "./dist/cli.js"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://versimo.dev/schema/module-record.schema.json",
|
|
3
|
+
"module": "billing",
|
|
4
|
+
"last": "2.3.1",
|
|
5
|
+
"current": "2.4.0",
|
|
6
|
+
"next": "2.5.0",
|
|
7
|
+
"rollout": 10,
|
|
8
|
+
"healthy": true,
|
|
9
|
+
"updatedAt": "2026-03-12T09:30:00Z",
|
|
10
|
+
"history": [
|
|
11
|
+
{ "at": "2026-02-20T10:00:00Z", "action": "promote", "from": "2.3.1", "to": "2.4.0", "by": "alex" },
|
|
12
|
+
{ "at": "2026-03-10T14:00:00Z", "action": "draft", "from": "2.4.0", "to": "2.5.0", "by": "alex" },
|
|
13
|
+
{ "at": "2026-03-12T09:30:00Z", "action": "rollout", "from": "0", "to": "10", "by": "alex" }
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://versimo.dev/schema/module-record.schema.json",
|
|
4
|
+
"title": "Versimo module record",
|
|
5
|
+
"description": "The release state of one module: last, current and next versions, and the share of users on next.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["module", "last", "current", "next", "rollout", "healthy", "updatedAt"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"$schema": { "type": "string" },
|
|
11
|
+
"module": {
|
|
12
|
+
"description": "Lower-case slug.",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
15
|
+
},
|
|
16
|
+
"last": { "description": "Previous current. The rollback target.", "oneOf": [{ "$ref": "#/$defs/semver" }, { "type": "null" }] },
|
|
17
|
+
"current": { "description": "The version most users get.", "$ref": "#/$defs/semver" },
|
|
18
|
+
"next": { "description": "The version in UAT on live.", "oneOf": [{ "$ref": "#/$defs/semver" }, { "type": "null" }] },
|
|
19
|
+
"rollout": {
|
|
20
|
+
"description": "Share of users on next, as a whole percentage.",
|
|
21
|
+
"type": "integer",
|
|
22
|
+
"minimum": 0,
|
|
23
|
+
"maximum": 100
|
|
24
|
+
},
|
|
25
|
+
"healthy": { "description": "Health of current. When false, users fall back to last.", "type": "boolean" },
|
|
26
|
+
"updatedAt": { "type": "string", "format": "date-time" },
|
|
27
|
+
"history": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": ["at", "action", "from", "to"],
|
|
33
|
+
"properties": {
|
|
34
|
+
"at": { "type": "string", "format": "date-time" },
|
|
35
|
+
"action": { "enum": ["draft", "promote", "rollback", "rollout", "patch"] },
|
|
36
|
+
"from": { "type": ["string", "null"] },
|
|
37
|
+
"to": { "type": ["string", "null"] },
|
|
38
|
+
"by": { "type": "string" },
|
|
39
|
+
"reason": { "description": "Why the change was made, for example health: errorRate.", "type": "string" }
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"$defs": {
|
|
45
|
+
"semver": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|