urlValueParser extra and replace masks can be regexp

https://github.com/disjunction/url-value-parser/blob/master/src/ValueDetector.js#L39

`replaceMasks` and `extraMasks` which are passed down to `url-value-parser` can be either string or RegExp.
This commit is contained in:
Oz Weiss
2021-02-22 10:48:58 +02:00
committed by GitHub
parent 5300d0ef82
commit 83ee0ce06e

4
types/index.d.ts vendored
View File

@@ -43,8 +43,8 @@ declare namespace express_prom_bundle {
urlValueParser?: {
minHexLength?: number;
minBase64Length?: number;
replaceMasks?: string[];
extraMasks?: string[];
replaceMasks?: (RegExp | string)[];
extraMasks?: (RegExp | string)[];
};
}