Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/Tencent/LuaPanda into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwang committed Dec 31, 2019
2 parents bb34eee + 6eff615 commit 7da99cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/code/server/docSymbolProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,10 @@ export class DocSymbolProcessor {
private pushToChunkList(name, chunk){

if(name.match(':')){
name = name.replace(/:/g,".");
//chunkname 除了是函数名外,还有可能是一个文件的路径。当name是路径的时候。不要把:转换为 .
if(!name.match(new RegExp(/^\w:[\\\/]/))){
name = name.replace(/:/g,".");
}
}

if(this.docInfo.defineSymbols["chunks"][name]){
Expand Down

0 comments on commit 7da99cd

Please sign in to comment.