From 4a50b5057a3fcfabdd4fc411fefd1444a6ea2307 Mon Sep 17 00:00:00 2001 From: Dieter Lunn Date: Tue, 2 Jul 2024 10:25:50 -0500 Subject: [PATCH] fix: use item instead of value for exception argument --- src/Ubiety.Stringprep.Core/ProhibitedValueStep.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ubiety.Stringprep.Core/ProhibitedValueStep.cs b/src/Ubiety.Stringprep.Core/ProhibitedValueStep.cs index 7d29e74..f0d7c86 100644 --- a/src/Ubiety.Stringprep.Core/ProhibitedValueStep.cs +++ b/src/Ubiety.Stringprep.Core/ProhibitedValueStep.cs @@ -49,10 +49,10 @@ public string Run(string input) var item = input.Where(value => table.Contains(value)).FirstOrDefault(); if (item != null) { - throw new ProhibitedValueException(value); + throw new ProhibitedValueException(item); } return input; } } -} +} \ No newline at end of file