Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 1e192f3

Browse files
committed
Include backticks in StripQuotes
1 parent a879083 commit 1e192f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ServiceStack.Text/StringExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,8 @@ public static string StripQuotes(this string text)
698698
return string.IsNullOrEmpty(text) || text.Length < 2
699699
? text
700700
: (text[0] == '"' && text[text.Length - 1] == '"') ||
701-
(text[0] == '\'' && text[text.Length - 1] == '\'')
701+
(text[0] == '\'' && text[text.Length - 1] == '\'') ||
702+
(text[0] == '`' && text[text.Length - 1] == '`')
702703
? text.Substring(1, text.Length - 2)
703704
: text;
704705
}

0 commit comments

Comments
 (0)