Closed vanowm closed 2 months ago
Messed with it a little bit and I think there's a small issue that the flags actually include a space, e.g., the flag to enable local var used in global scope is "-w 4", so the comma separation in the initial variable and the regex/logic to parse from the script need to be adjusted.
I don't believe I understand you...which variable and regex you are referring to?
Hi @loganch, hi @vanowm 👋 .
I don't believe I understand you...which variable and regex you are referring to?
I guess line 48 is meant by Logan. But I also don't see the problem.
The RegEx pattern (-w-?)\s+([0-9]+)
matches the following variants, as far as I can say and understood:
;~ ----
;~ Okay
;~ ----
#AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7
#AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7
#AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w- 3 -w 4 -w 5 -w 6 -w 7
#AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w- 3 -w 4 -w 5 -w 6 -w 7
;~ --------
;~ Not okay
;~ --------
#AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w3 -w 4 -w 5 -w 6 -w 7
#AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w-3 -w 4 -w 5 -w 6 -w 7
#AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 w 3 -w 4 -w 5 -w 6 -w 7
#AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 w- 3 -w 4 -w 5 -w 6 -w 7
My manual tests for this PR were successful 😀 . But I hope I do not miss something 🤔 ?
Best regards Sven
No, I was mistaken, merging it now.
same as #215 but with ability overwrite settings via #AutoIt3Wrapper_AU3Check_Parameters