AutoWikiBrowser.Plugins.Kingbotk.Plugins.GenericTemplatePlugin.SkipIfContains C# (CSharp) Method

SkipIfContains() protected method

protected SkipIfContains ( ) : bool
return bool
        protected override bool SkipIfContains()
        {
            if (SkipRegex != null)
            {
                try
                {
                    return SkipRegex.Matches(TheArticle.AlteredArticleText).Count > 0;
                }
                catch (Exception ex)
                {
                    MessageBox.Show(
                        "Error processing skip regular expression: " + Environment.NewLine + Environment.NewLine + ex,
                        "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    PluginManager.StopAWB();
                }
            }

            return false;
        }