mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Add Unescape Function
Thanks and Credits to LethalLuck from the Openbullet Anomaly Mod for this
This commit is contained in:
@@ -66,6 +66,9 @@ namespace RuriLib
|
||||
|
||||
/// <summary>Decodes a URL-encoded input.</summary>
|
||||
URLDecode,
|
||||
|
||||
/// <summary>Unescapes characters in a string.</summary>
|
||||
Unescape,
|
||||
|
||||
/// <summary>Encodes the input to be displayed in HTML or XML.</summary>
|
||||
HTMLEntityEncode,
|
||||
@@ -575,7 +578,11 @@ namespace RuriLib
|
||||
case Function.RegexMatch:
|
||||
outputString = Regex.Match(localInputString, ReplaceValues(regexMatch, data)).Value;
|
||||
break;
|
||||
|
||||
|
||||
case Function.Unescape:
|
||||
outputString = Regex.Unescape(localInputString);
|
||||
break;
|
||||
|
||||
case Function.URLEncode:
|
||||
outputString = System.Uri.EscapeDataString(localInputString);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user