leetcode-editor
leetcode-editor copied to clipboard
对 LCP/LCR 题目名称转换不符合预期
Describe the bug
LCP/LCR 类型题目的 titleSlug 是随机字符串,首字母可能是大写,在转换为 SnakeCaseName 时出现首字母前加下划线,导致无法本地编译测试。希望调整首字母不做转换
To Reproduce Steps to reproduce the behavior:
Software versions(Help -> About)
- Product: GoLand 2023.2.1
- Runtime version: 17.0.8+7-b1000.8 aarch64
- VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
- OS: macOS 14.0
Question(Optional)
- URL: https://leetcode.cn/problems/WHnhjV/description/
- Format Code:
$!velocityTool.leftPadZeros($!{question.frontendQuestionId},4)-${question.titleSlug}/$!velocityTool.snakeCaseName(${question.titleSlug})