mirror of
https://gitee.com/zhijiantianya/ruoyi-vue-pro.git
synced 2026-06-05 18:25:41 +08:00
fix(infra): 修复 Windows 下代码生成单测换行与尾逗号差异
This commit is contained in:
@ -115,7 +115,10 @@ public abstract class CodegenEngineAbstractTest extends BaseMockitoUnitTest {
|
||||
}
|
||||
|
||||
private static String normalizeLineEndings(String content) {
|
||||
return content == null ? null : content.replace("\r\n", "\n").replace("\r", "\n").stripTrailing();
|
||||
if (content == null) {
|
||||
return null;
|
||||
}
|
||||
return StrUtil.trimEnd(content.replace("\r\n", "\n").replace('\r', '\n'));
|
||||
}
|
||||
|
||||
// ==================== 调试专用 ====================
|
||||
|
||||
Reference in New Issue
Block a user