Skip to content

Commit c1f71e7

Browse files
authored
Use SplitPath instead of RegExMatch
1 parent ff24892 commit c1f71e7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

EC-Autoclicker.ahk

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,9 +752,10 @@ ProfileManage(*) {
752752
for fileLocation in fileLocations {
753753
add_log "Importing profile from " fileLocation
754754

755-
local profileNameMatch
756-
RegExMatch fileLocation, ".*\\\K(.*?)(\..*)?$", &profileNameMatch
757-
local profileName := profileNameMatch.1
755+
;local profileNameMatch
756+
;RegExMatch fileLocation, ".*\\\K(.*?)(\..*)?$", &profileNameMatch
757+
local profileName ;:= profileNameMatch.1
758+
SplitPath fileLocation, &profileName
758759

759760
Loop Reg REG_KEY_PATH "\Profiles", "K" {
760761
if A_LoopRegName = profileName {

0 commit comments

Comments
 (0)