isValidScriptId static method
Returns true if the given scriptId conforms to the proper regex
pattern.
Regex pattern ^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$
Implementation
static bool isValidScriptId(String scriptId) =>
RegExp(r"^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$").hasMatch(scriptId);