From 159a262ac9fd694475fa506aeaf9bd79c4a4a7c6 Mon Sep 17 00:00:00 2001 From: danshihao Date: Fri, 3 Mar 2023 10:07:37 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=20ESLint=E3=80=91StringUtil.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/_util/StringUtil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jero-web/src/components/_util/StringUtil.js b/jero-web/src/components/_util/StringUtil.js index 822a71bb..32202b22 100644 --- a/jero-web/src/components/_util/StringUtil.js +++ b/jero-web/src/components/_util/StringUtil.js @@ -36,7 +36,7 @@ export const cutStrByFullLength = (str = '', maxLength) => { // 下划线转换驼峰 export function underLinetoHump (name) { - return name.replace(/\_(\w)/g, function (all, letter) { + return name.replace(/_(\w)/g, function (all, letter) { return letter.toUpperCase() }) }