@appsemble/lang-sdk 0.35.4 → 0.35.7
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/constants/patterns.d.ts +5 -0
- package/constants/patterns.js +5 -0
- package/package.json +1 -1
package/constants/patterns.d.ts
CHANGED
|
@@ -27,6 +27,11 @@ export declare const domainPattern: RegExp;
|
|
|
27
27
|
* A pattern to match a Google Analytics ID or an empty string.
|
|
28
28
|
*/
|
|
29
29
|
export declare const googleAnalyticsIDPattern: RegExp;
|
|
30
|
+
/**
|
|
31
|
+
* A pattern to match a Meta (Facebook) Pixel ID or an empty string.
|
|
32
|
+
* Meta Pixel IDs are numeric strings, usually 5–20 digits.
|
|
33
|
+
*/
|
|
34
|
+
export declare const metaPixelIDPattern: RegExp;
|
|
30
35
|
/**
|
|
31
36
|
* A pattern which matches a UUID 4.
|
|
32
37
|
*/
|
package/constants/patterns.js
CHANGED
|
@@ -27,6 +27,11 @@ export const domainPattern = new RegExp(`^(${partialNormalized.source}+\\.)+[a-z
|
|
|
27
27
|
* A pattern to match a Google Analytics ID or an empty string.
|
|
28
28
|
*/
|
|
29
29
|
export const googleAnalyticsIDPattern = /^(|UA-\d{4,10}-\d{1,4}|G-[\dA-Z]{4,})$/;
|
|
30
|
+
/**
|
|
31
|
+
* A pattern to match a Meta (Facebook) Pixel ID or an empty string.
|
|
32
|
+
* Meta Pixel IDs are numeric strings, usually 5–20 digits.
|
|
33
|
+
*/
|
|
34
|
+
export const metaPixelIDPattern = /^(|\d{5,20})$/;
|
|
30
35
|
/**
|
|
31
36
|
* A pattern which matches a UUID 4.
|
|
32
37
|
*/
|