mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2026-08-24 06:26:33 +00:00
@@ -1899,8 +1899,8 @@ export function removeLinesEnding(
|
||||
);
|
||||
}
|
||||
|
||||
export function parseAffixStrings(clipboard: string): string {
|
||||
return clipboard.replace(/\[([^\]|]+)\|?([^\]]*)\]/g, (_, part1, part2) => {
|
||||
export function parseAffixStrings(text: string): string {
|
||||
return text.replace(/\[([^\]|]+)\|?([^\]]*)\]/g, (_, part1, part2) => {
|
||||
return part2 || part1;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1753,7 +1753,7 @@ function buildNameBlock(
|
||||
continue;
|
||||
|
||||
case TradePropType.Quality:
|
||||
text = "item.quality";
|
||||
text = `${parseAffixStrings(name)}: {0}`;
|
||||
break;
|
||||
|
||||
case TradePropType.WeaponSpeed:
|
||||
|
||||
Reference in New Issue
Block a user