mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-07 08:13:06 +00:00
9 lines
423 B
JavaScript
9 lines
423 B
JavaScript
// Matches field identifiers starting with header, requestHeader, mobileHeader,
|
|
// mobile_header, request_header
|
|
// all optionally suffixed with a period and any non - line break characters
|
|
const trackingHeaderFieldsRegex = /^(?:header[.|[]|request_?header[.|[]|mobile_?header[.|[]).*/i;
|
|
|
|
export default candidateString => trackingHeaderFieldsRegex.test(String(candidateString));
|
|
|
|
export { trackingHeaderFieldsRegex };
|