From 1d16ce1592e126dd55e10a77e379342c429e5219 Mon Sep 17 00:00:00 2001 From: public_host Date: Tue, 20 Apr 2021 13:28:40 +0800 Subject: [PATCH] fix --- hasaki-gen-crud/hasaki-gen-crud.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hasaki-gen-crud/hasaki-gen-crud.js b/hasaki-gen-crud/hasaki-gen-crud.js index 9bb23c9..6abcc60 100644 --- a/hasaki-gen-crud/hasaki-gen-crud.js +++ b/hasaki-gen-crud/hasaki-gen-crud.js @@ -80,11 +80,11 @@ try { prefix = prefix.replace(" ", " ") } + let rearr = prefix.toLocaleLowerCase().split(" "); let underscore_naming = rearr.join("_"); let lowercase_first_letter = ""; let capitalize_the_first_letter = ""; - let rearr = prefix.toLocaleLowerCase().split(" "); for (var i = 0; i < rearr.length; i++) { let tmp = rearr[i].split(""); tmp[0] = tmp[0].toLocaleUpperCase();