mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-11 03:00:18 +00:00
9 lines
417 B
JavaScript
9 lines
417 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 };
|