add an a sample with actual RegExp in advanced-example.js, relates to #80

This commit is contained in:
Konstantin Pogorelov
2021-02-22 15:15:37 +01:00
parent 2e093bc14d
commit ccb74f99b0

View File

@@ -19,7 +19,8 @@ const bundle = promBundle({
urlValueParser: {
minHexLength: 5,
extraMasks: [
"^[0-9]+\\.[0-9]+\\.[0-9]+$" // replace dot-separated dates with #val
"^[0-9]+\\.[0-9]+\\.[0-9]+$", // replace dot-separated dates with #val, (regex as string)
/^[0-9]+\-[0-9]+\-[0-9]+$/ // replace dash-separated dates with #val (actual regex)
]
},
normalizePath: [