mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00
8 lines
277 B
Dart
8 lines
277 B
Dart
bool containsTextInBracket(String matcher, String text) {
|
|
final allMatches = RegExp(r"(?<=\().+?(?=\))").allMatches(matcher);
|
|
if (allMatches.isEmpty) return false;
|
|
return allMatches
|
|
.map((e) => e.group(0))
|
|
.every((match) => match?.contains(text) ?? false);
|
|
}
|