Update regex pattern for cookie flags in plugin.json for improved validation

This commit is contained in:
Théophile Diot 2024-11-12 14:45:08 +01:00
parent 7e8f1ef25d
commit b0006a6c94
No known key found for this signature in database
GPG key ID: FA995104A0BA376A
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ repos:
- id: check-case-conflict
- repo: https://github.com/psf/black
rev: b965c2a5026f8ba399283ba3e01898b012853c79 # frozen: 24.8.0
rev: 1b2427a2b785cc4aac97c19bb4b9a0de063f9547 # frozen: 24.10.0
hooks:
- id: black
name: Black Python Formatter
@ -67,7 +67,7 @@ repos:
types: [text]
- repo: https://github.com/gitleaks/gitleaks
rev: ce2702a4889da86abb07e0fb0482e9a6e12a9f24 # frozen: v8.20.0
rev: a9e1950fe247fbb08817393121691474c55a6cfa # frozen: v8.21.2
hooks:
- id: gitleaks

View file

@ -48,7 +48,7 @@
"help": "Cookie flags automatically added to all cookies (value accepted for nginx_cookie_flag_module).",
"id": "cookie-flags",
"label": "Cookie flags",
"regex": "^((\\*|[^;]+)( (HttpOnly|(SameSite)(?!.*\\4)(=(Lax|Strict))?)(?!.*\\3))+)?$",
"regex": "^(\\*|[^;]+)( (HttpOnly|(SameSite)(?!.*\\4)(=(Lax|Strict))?)(?!.*\\3))*$",
"type": "text",
"multiple": "cookie-flags"
},