|
@@ -151,7 +151,7 @@ public class BytedanceVideoSlogenInfoController {
|
|
|
int len = StringUtils.lengthAsSlogan(title);
|
|
|
int left = title.indexOf("{");
|
|
|
int right = title.indexOf("}");
|
|
|
- if(left >= 0 && right >= 0){
|
|
|
+ if(left >= 0 || right >= 0){
|
|
|
int times = 0;
|
|
|
while (matcher.find()) { //此处find()每次被调用后,会偏移到下一个匹配
|
|
|
times++;
|
|
@@ -229,7 +229,7 @@ public class BytedanceVideoSlogenInfoController {
|
|
|
int len = StringUtils.lengthAsSlogan(title);
|
|
|
int left = title.indexOf("{");
|
|
|
int right = title.indexOf("}");
|
|
|
- if (left >= 0 && right >= 0) {
|
|
|
+ if (left >= 0 || right >= 0) {
|
|
|
int times = 0;
|
|
|
while (matcher.find()) { //此处find()每次被调用后,会偏移到下一个匹配
|
|
|
times++;
|