Skip to content

Commit 7da9794

Browse files
committed
Ensure suffix matches canonical kind suffix
1 parent 2b5ea19 commit 7da9794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/yaml/lib/src/utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ bool isLowSurrogate(int codeUnit) => codeUnit >>> 10 == 0x37;
4949
bool isResolvedYamlTag(String? tag, String canonicalSuffix) =>
5050
tag == null ||
5151
!tag.startsWith('tag:yaml.org,2002:') || // Leaky prefix condition.
52-
!tag.endsWith(canonicalSuffix);
52+
tag.endsWith(canonicalSuffix);

0 commit comments

Comments
 (0)