Skip to content

Commit

Permalink
fix: Only parse correctly capitalized false literals
Browse files Browse the repository at this point in the history
  • Loading branch information
klao committed Mar 7, 2024
1 parent 12f1451 commit 9b095c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schema/yaml-1.1/bool.ts
Expand Up @@ -21,7 +21,7 @@ export const falseTag: ScalarTag & { test: RegExp } = {
identify: value => value === false,
default: true,
tag: 'tag:yaml.org,2002:bool',
test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,
test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
resolve: () => new Scalar(false),
stringify: boolStringify
}

0 comments on commit 9b095c7

Please sign in to comment.