Skip to content

Commit

Permalink
修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanasu committed Mar 3, 2024
1 parent c52e55d commit 1d40fe8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/app/class/cut-in-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ export class CutInList extends ObjectNode implements InnerXml {
if (!cutIn) continue;
let isMatch = false;
for (const postfix of cutIn.postfixes) {
if (StringUtil.toHalfWidth(text).toUpperCase().trimRight().endsWith(StringUtil.toHalfWidth(postfix).toUpperCase().trimRight())
|| StringUtil.toHalfWidth(text.replaceAll('>', '→')).toUpperCase().trimRight().endsWith(StringUtil.toHalfWidth(postfix).toUpperCase().trimRight())) {
if (StringUtil.toHalfWidth(text.replaceAll('>', '→')).toUpperCase().trimRight().endsWith(StringUtil.toHalfWidth(postfix.replaceAll('>', '→')).toUpperCase().trimRight())) {
isMatch = true;
if ((postfix.slice(0, 1) == '@' || postfix.slice(0, 1) == '@') && textTagMatch.length < postfix.length) textTagMatch = postfix;
}
Expand Down
3 changes: 1 addition & 2 deletions src/app/class/stand-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ export class StandList extends DataElement {
&& (conditionType == StandConditionType.Postfix || conditionType == StandConditionType.PostfixOrImage || conditionType == StandConditionType.PostfixAndImage)) {
for (let postfix of postfixes.split(/[\r\n]+/g)) {
if (postfix == null || postfix.trim().length == 0) continue;
if (StringUtil.toHalfWidth(text).toUpperCase().trimRight().endsWith(StringUtil.toHalfWidth(postfix).trimRight().toUpperCase())
|| StringUtil.toHalfWidth(text.replaceAll('>', '→')).toUpperCase().trimRight().endsWith(StringUtil.toHalfWidth(postfix).trimRight().toUpperCase())) {
if (StringUtil.toHalfWidth(text.replaceAll('>', '→')).toUpperCase().trimRight().endsWith(StringUtil.toHalfWidth(postfix.replaceAll('>', '→')).trimRight().toUpperCase())) {
if ((postfix.slice(0, 1) == '@' || postfix.slice(0, 1) == '@') && textTagMatch.length < postfix.length) textTagMatch = postfix;
conditionPostfix = true;
}
Expand Down

0 comments on commit 1d40fe8

Please sign in to comment.