[bugfix] chat bubble error and Pronounce ID.UNYX error
This commit is contained in:
@@ -50,8 +50,13 @@ class CommonUtil {
|
||||
.trim();
|
||||
|
||||
if (forTts) {
|
||||
cleanedText = cleanedText.replaceAllMapped(
|
||||
RegExp(r'ID\.UNYX', caseSensitive: false), (m) => 'I D Unix');
|
||||
if (cleanedText.contains("ID.UNYX")) {
|
||||
cleanedText = cleanedText.replaceAllMapped(
|
||||
RegExp(r'ID\.UNYX', caseSensitive: false), (m) => 'ID Unix');
|
||||
} else {
|
||||
cleanedText = cleanedText.replaceAllMapped(
|
||||
RegExp(r'UNYX', caseSensitive: false), (m) => 'Unix');
|
||||
}
|
||||
}
|
||||
|
||||
return cleanedText;
|
||||
|
||||
Reference in New Issue
Block a user