Aura.Mabi.Tags.Evaluate C# (CSharp) Méthode

Evaluate() private méthode

Returns true if the given tag can be found inside this instance.
private Evaluate ( string tag ) : bool
tag string
Résultat bool
		private bool Evaluate(string tag)
		{
			if (this.Value == null || tag == null)
				return false;

			tag = tag.Trim().Replace("*", ".*");
			// TODO: Cache?
			return Regex.IsMatch(this.Value, tag);
		}
	}