Skip to content

Commit 920a5c1

Browse files
committed
add isnot and notcontains in page filter check
1 parent 8ace20d commit 920a5c1

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed

build/cjs/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/esm/index.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gleap",
3-
"version": "14.3.1",
3+
"version": "14.3.2",
44
"main": "build/cjs/index.js",
55
"module": "build/esm/index.mjs",
66
"exports": {

published/14.3.2/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

published/latest/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GleapPageFilter.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ export const checkPageFilter = (currentUrl, pageFilter, pageFilterType) => {
4747
matched =
4848
removeTrailingSlash(currentUrl) === removeTrailingSlash(pageFilter);
4949
break;
50+
case "isnot":
51+
matched = removeTrailingSlash(currentUrl) !== removeTrailingSlash(pageFilter);
52+
break;
5053
case "contains":
5154
matched = isMatchingUrl(currentUrl, pageFilter);
5255
break;
@@ -56,6 +59,9 @@ export const checkPageFilter = (currentUrl, pageFilter, pageFilterType) => {
5659
case "endswith":
5760
matched = currentUrl.endsWith(pageFilter);
5861
break;
62+
case "notcontains":
63+
matched = !isMatchingUrl(currentUrl, pageFilter);
64+
break;
5965
default:
6066
matched = false;
6167
}

0 commit comments

Comments
 (0)