We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b44d29e commit a268784Copy full SHA for a268784
projects/pixel/src/lib/pixel.module.ts
@@ -41,15 +41,9 @@ export class PixelModule {
41
*/
42
private static verifyPixelId(pixelId: string): void {
43
44
- // Regular expression for Pixel ID format (15 digits) (not yet implemented)
45
- const regex = /^\d{15}$/;
46
-
47
- // TODO: Check validity of Pixel ID with a RegEx.
48
// Have to verify first that all Pixel IDs follow the same 15 digit format
49
if (pixelId === null || pixelId === undefined || pixelId.length === 0) {
50
throw Error('Invalid Facebook Pixel ID. Did you pass the ID into the forRoot() function?');
51
- } else if (!regex.test(pixelId)) {
52
- throw Error('Invalid Facebook Pixel ID. The ID should consist of 15 digits.');
53
}
54
55
0 commit comments