@webex/common 3.0.0-beta.32 → 3.0.0-beta.321
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/patterns.js +5 -0
- package/dist/patterns.js.map +1 -1
- package/package.json +3 -3
- package/src/patterns.js +6 -0
package/dist/patterns.js
CHANGED
|
@@ -38,6 +38,11 @@ var _default = {
|
|
|
38
38
|
* @type {RegExp}
|
|
39
39
|
*/
|
|
40
40
|
uuid: /^[a-f\d]{8}(?:-[a-f\d]{4}){3}-[a-f\d]{12}$/,
|
|
41
|
+
/**
|
|
42
|
+
* Regular expression that validates an ambiguous string contains MTID
|
|
43
|
+
* @type {RegExp}
|
|
44
|
+
*/
|
|
45
|
+
containsMTID: /(MTID=)[^&$#]*/g,
|
|
41
46
|
/**
|
|
42
47
|
* Same as this.email, but allows for surrounding characters
|
|
43
48
|
* @type {RegExp}
|
package/dist/patterns.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["email","containsEmails","uuid","execEmail","execUuid"],"sources":["patterns.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/**\n * @description Set of regex patterns to compile once and use throughout the\n * app. All non-prefixed patterns have start/end characters to ensure exact\n * matches. Patterns prefixed with \"exec\" are the same as their non-prefixed\n * counterparts but without the start/end characters so they can be used with\n * methods like `RegExp#exec`.\n */\nexport default {\n /**\n * Regular express that validates a string is strictly an email.\n * Allows for validation of emails within services such as conversation\n * activities or user details.\n * See [RegEx information here]{@link https://ihateregex.io/expr/email-2}.\n *\n * @type {RegExp}\n */\n email:\n /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/,\n\n /**\n * Regular expression that validates an ambiguous string contains emails\n * (one or more) within.\n * See [RegEx information here]{@link https://ihateregex.io/expr/email-2}.\n *\n * @type {RegExp}\n */\n containsEmails:\n /(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))/g,\n\n /**\n * Matches a UUID\n * @type {RegExp}\n */\n uuid: /^[a-f\\d]{8}(?:-[a-f\\d]{4}){3}-[a-f\\d]{12}$/,\n\n /**\n * Same as this.email, but allows for surrounding characters\n * @type {RegExp}\n */\n execEmail: /[^\\s]+?@[^\\s]+?/,\n\n /**\n * Same as this.uuid but allows for surrounding characters\n * @type {RegExp}\n */\n execUuid: /[a-f\\d]{8}(?:-[a-f\\d]{4}){3}-[a-f\\d]{12}/,\n};\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AANA,eAOe;EACb;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACEA,KAAK,EACH,sJAAsJ;EAExJ;AACF;AACA;AACA;AACA;AACA;AACA;EACEC,cAAc,EACZ,qJAAqJ;EAEvJ;AACF;AACA;AACA;EACEC,IAAI,EAAE,4CAA4C;EAElD;AACF;AACA;AACA;EACEC,SAAS,EAAE,iBAAiB;EAE5B;AACF;AACA;AACA;EACEC,QAAQ,EAAE;AACZ,CAAC;AAAA"}
|
|
1
|
+
{"version":3,"names":["email","containsEmails","uuid","containsMTID","execEmail","execUuid"],"sources":["patterns.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/**\n * @description Set of regex patterns to compile once and use throughout the\n * app. All non-prefixed patterns have start/end characters to ensure exact\n * matches. Patterns prefixed with \"exec\" are the same as their non-prefixed\n * counterparts but without the start/end characters so they can be used with\n * methods like `RegExp#exec`.\n */\nexport default {\n /**\n * Regular express that validates a string is strictly an email.\n * Allows for validation of emails within services such as conversation\n * activities or user details.\n * See [RegEx information here]{@link https://ihateregex.io/expr/email-2}.\n *\n * @type {RegExp}\n */\n email:\n /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/,\n\n /**\n * Regular expression that validates an ambiguous string contains emails\n * (one or more) within.\n * See [RegEx information here]{@link https://ihateregex.io/expr/email-2}.\n *\n * @type {RegExp}\n */\n containsEmails:\n /(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))/g,\n\n /**\n * Matches a UUID\n * @type {RegExp}\n */\n uuid: /^[a-f\\d]{8}(?:-[a-f\\d]{4}){3}-[a-f\\d]{12}$/,\n\n /**\n * Regular expression that validates an ambiguous string contains MTID\n * @type {RegExp}\n */\n containsMTID: /(MTID=)[^&$#]*/g,\n\n /**\n * Same as this.email, but allows for surrounding characters\n * @type {RegExp}\n */\n execEmail: /[^\\s]+?@[^\\s]+?/,\n\n /**\n * Same as this.uuid but allows for surrounding characters\n * @type {RegExp}\n */\n execUuid: /[a-f\\d]{8}(?:-[a-f\\d]{4}){3}-[a-f\\d]{12}/,\n};\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AANA,eAOe;EACb;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACEA,KAAK,EACH,sJAAsJ;EAExJ;AACF;AACA;AACA;AACA;AACA;AACA;EACEC,cAAc,EACZ,qJAAqJ;EAEvJ;AACF;AACA;AACA;EACEC,IAAI,EAAE,4CAA4C;EAElD;AACF;AACA;AACA;EACEC,YAAY,EAAE,iBAAiB;EAE/B;AACF;AACA;AACA;EACEC,SAAS,EAAE,iBAAiB;EAE5B;AACF;AACA;AACA;EACEC,QAAQ,EAAE;AACZ,CAAC;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/common",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.321",
|
|
4
4
|
"description": "Common utilities for Cisco Webex",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@sinonjs/fake-timers": "^6.0.1",
|
|
28
|
-
"@webex/common": "3.0.0-beta.
|
|
29
|
-
"@webex/test-helper-chai": "3.0.0-beta.
|
|
28
|
+
"@webex/common": "3.0.0-beta.321",
|
|
29
|
+
"@webex/test-helper-chai": "3.0.0-beta.321",
|
|
30
30
|
"ampersand-state": "^5.0.3",
|
|
31
31
|
"sinon": "^9.2.4"
|
|
32
32
|
},
|
package/src/patterns.js
CHANGED
|
@@ -37,6 +37,12 @@ export default {
|
|
|
37
37
|
*/
|
|
38
38
|
uuid: /^[a-f\d]{8}(?:-[a-f\d]{4}){3}-[a-f\d]{12}$/,
|
|
39
39
|
|
|
40
|
+
/**
|
|
41
|
+
* Regular expression that validates an ambiguous string contains MTID
|
|
42
|
+
* @type {RegExp}
|
|
43
|
+
*/
|
|
44
|
+
containsMTID: /(MTID=)[^&$#]*/g,
|
|
45
|
+
|
|
40
46
|
/**
|
|
41
47
|
* Same as this.email, but allows for surrounding characters
|
|
42
48
|
* @type {RegExp}
|