containsAnimation

abstract fun containsAnimation(text: String, animation: String): Boolean

Checks if the input text contains the pattern ${my-animation} or the pattern ${my-animation:parameter} where my-animation is the animation parameter.

Return

true if the text returned with a match and false if it doesn't.

Since

2.0.0

Parameters

text

The text that will be matched.

animation

The animation or script that will be matched for.

Sources

Link copied to clipboard