Fixed bug with detection of presence of captcha blocks in a config

This commit is contained in:
ruri
2020-03-19 03:42:41 +01:00
+1 -1
View File
@@ -37,7 +37,7 @@ namespace RuriLib
public bool DangerousScriptPresent { get { return Script.ToUpper().Contains("BEGIN SCRIPT"); } }
/// <summary>Whether captcha solving blocks are present in the Config.</summary>
public bool CaptchasNeeded { get { return Script.Contains("CAPTCHA"); } }
public bool CaptchasNeeded { get { return Regex.Match(Script, "^(RE)?CAPTCHA").Success; } }
/// <summary>Whether bypasscf blocks are present in the Config.</summary>
public bool HasCFBypass { get { return Script.Contains("BYPASSCF"); } }