Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix:issue #150, 修复配置文件中后缀不包含分隔符时导致解析出来的文件名称为lua.lua的问题 #178

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

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