mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-10 11:31:44 -04:00
[ENG-857] Fix telemetry regex (#1050)
* fix regex * change back to `replace`
This commit is contained in:
1 file changed
+2
-2
@@ -191,7 +191,7 @@ const submitPlausibleEvent = async ({ event, debugState, ...props }: SubmitEvent
|
||||
},
|
||||
options: {
|
||||
deviceWidth: props.screenWidth ?? window.screen.width,
|
||||
// referrer: '', // TODO(brxken128): see if we could have this blank to prevent accidental IP logging
|
||||
referrer: '',
|
||||
...('plausibleOptions' in event ? event.plausibleOptions : undefined)
|
||||
},
|
||||
callback: debugState.telemetryLogging
|
||||
@@ -294,7 +294,7 @@ const PageViewRegexRules: [RegExp, string][] = [
|
||||
/**
|
||||
* This is for removing the library UUID from the current path
|
||||
*/
|
||||
[RegExp('/[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}'), ''],
|
||||
[RegExp('/[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}', 'g'), ''],
|
||||
/**
|
||||
* This is for removing location IDs from the current path
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user