Skip to content

Commit

Permalink
refactor: simlify package name
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 7, 2023
1 parent 6f5c476 commit 24849af
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cc.unitmesh.pick.worker

import cc.unitmesh.pick.output.Instruction
import cc.unitmesh.pick.picker.PickJob
import chapi.ast.antlr.JavaParser
import chapi.ast.javaast.JavaAnalyser
import kotlinx.coroutines.coroutineScope
import org.archguard.scanner.analyser.count.FileJob
Expand All @@ -25,7 +24,7 @@ class JavaLangWorker : LangWorker() {
private val jobs: MutableList<PickJob> = mutableListOf()
private val packageTree: MutableMap<String, PickJob> = mutableMapOf()

private val packageRegex = Regex("package\\s+([a-zA-Z0-9_\\.]+);")
private val packageRegex = Regex("package\\s+([a-zA-Z0-9_.]+);")
private val extLength = ".java".length

override fun addJob(job: PickJob) {
Expand Down

0 comments on commit 24849af

Please sign in to comment.