From e3da1112204090f972ab8685c60aa859ba5d5572 Mon Sep 17 00:00:00 2001 From: liangshi <1142607614@qq.com> Date: Wed, 17 Apr 2024 07:23:50 +0000 Subject: [PATCH] update apps/profile/ProfileChange.js. Signed-off-by: liangshi <1142607614@qq.com> --- apps/profile/ProfileChange.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/profile/ProfileChange.js b/apps/profile/ProfileChange.js index 6c6efdb1..630e9639 100644 --- a/apps/profile/ProfileChange.js +++ b/apps/profile/ProfileChange.js @@ -127,8 +127,8 @@ const ProfileChange = { return true } - // 匹配武器 - let wRet = /^(?:等?级?([1-9][0-9])?级?)?\s*(?:([1-5一二三四五满])?(?:(精炼?)|(叠影?))?([1-5一二三四五])?)?\s*(?:等?级?([1-9][0-9])?级?)?\s*(.*)$/.exec(txt) + // 匹配武器 + let wRet = /^(?:等?级?([1-9][0-9])?级?)?\s*(?:([1-5一二三四五满])?(?:(精炼?)|(叠影?))([1-5一二三四五])?)?\s*(?:等?级?([1-9][0-9])?级?)?\s*(.*)$/.exec(txt) if (wRet && wRet[7]) { let weaponName = lodash.trim(wRet[7]) let weapon = Weapon.get(weaponName, game, ret.char.game)