mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix: allow double -- in permissions as command can have double __ (#12884)
* allow double `--` in permissions as command can have double `__` * Create change-pr-12884.md * Update .changes/change-pr-12884.md Co-authored-by: Fabian-Lars <github@fabianlars.de> --------- Co-authored-by: Fabian-Lars <github@fabianlars.de>
This commit is contained in:
5
.changes/change-pr-12884.md
Normal file
5
.changes/change-pr-12884.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri-utils": "patch:bug"
|
||||
---
|
||||
|
||||
fix: allow double `--` in permissions as command can have double `__`
|
||||
@@ -104,7 +104,8 @@ impl ValidByte {
|
||||
|
||||
(_, IDENTIFIER_SEPARATOR) => Some(ValidByte::Separator),
|
||||
(ValidByte::Separator, next) => ValidByte::alpha_numeric(next),
|
||||
(ValidByte::Byte(b'-'), next) => ValidByte::alpha_numeric(next),
|
||||
(ValidByte::Byte(b'-'), next) => ValidByte::alpha_numeric_hyphen(next),
|
||||
(ValidByte::Byte(b'_'), next) => ValidByte::alpha_numeric_hyphen(next),
|
||||
(ValidByte::Byte(_), next) => ValidByte::alpha_numeric_hyphen(next),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user