Remove single unicode character from autotag query (#2363)

* Remove single unicode character from autotag query
* Compile regex once where possible
* Fix CPU profiling
* Only match unicode characters if in path
This commit is contained in:
WithoutPants
2022-03-07 13:26:24 +11:00
committed by GitHub
parent 0737ca953d
commit 18665863d6
3 changed files with 79 additions and 20 deletions

View File

@@ -35,10 +35,11 @@ func main() {
manager.Initialize()
api.Start(uiBox, loginUIBox)
// stop any profiling at exit
defer pprof.StopCPUProfile()
blockForever()
// stop any profiling at exit
pprof.StopCPUProfile()
manager.GetInstance().Shutdown(0)
}