fix(fs): Apply requireLiteralLeadingDot config (#1585)

* fix(fs): Apply requireLiteralLeadingDot config

* fix deserialization

* reword changefile [skip ci]
This commit is contained in:
Fabian-Lars
2024-07-25 16:11:26 +02:00
committed by GitHub
parent 647d8894fe
commit 2b269f1b6d
3 changed files with 7 additions and 1 deletions
@@ -0,0 +1,5 @@
---
"fs": patch
---
Fixed an issue that caused the plugin to ignore the `requireLiteralLeadingDot` config.
+1 -1
View File
@@ -854,7 +854,7 @@ pub fn resolve_path<R: Runtime>(
.chain(global_scope.denies().iter().map(|e| e.path.clone()))
.chain(command_scope.denies().iter().map(|e| e.path.clone()))
.collect(),
require_literal_leading_dot: None,
require_literal_leading_dot: app.fs_scope().require_literal_leading_dot,
},
)?;
+1
View File
@@ -5,6 +5,7 @@
use serde::Deserialize;
#[derive(Deserialize)]
#[serde(rename_all = "camelCase", deny_unknown_fields)]
pub struct Config {
/// Whether or not paths that contain components that start with a `.`
/// will require that `.` appears literally in the pattern; `*`, `?`, `**`,