mingyang_text 2023.1.28 → 2023.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/text.js +8 -5
package/package.json
CHANGED
package/text.js
CHANGED
@@ -6,12 +6,15 @@
|
|
6
6
|
* @param {"占位符"} args_PlaceHolder
|
7
7
|
*/
|
8
8
|
function func_StringFormat(args_Input, args_Length, args_PlaceHolder) {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
let temp_TXT = args_Input.toString();
|
10
|
+
if (args_Length > temp_TXT.length) {
|
11
|
+
let temp_Fil = args_PlaceHolder.toString();
|
12
|
+
let temp_Len = args_Length - temp_TXT.length;
|
13
|
+
for (let i = 0; i < temp_Len; i++) {
|
14
|
+
temp_TXT = temp_Fil + temp_TXT;
|
15
|
+
}
|
14
16
|
}
|
17
|
+
return temp_TXT;
|
15
18
|
}
|
16
19
|
module.exports.do_StringFormat = func_StringFormat;
|
17
20
|
|