Skip to content

Conversation

@lixiandea
Copy link

#150 issue修复

问题描述

luaFileExtension 中不包含文件后缀的分隔符如lua时,会导致函数处理后缀时将.转换为/,将文件test.lua变成test/lua,进而解析出来的文件名称变成了lua.lua
image

解决方案

判断经过后缀处理之后的字符串是否以/结尾,如果是换成.结尾。

@tencent-adm
Copy link
Member

tencent-adm commented Mar 11, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants