Skip to content

Commit

Permalink
only allow numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
DaLeberkasPepi authored and DaLeberkasPepi committed Nov 10, 2018
1 parent b1f0ce2 commit 65097cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@ MysticManager.ini
MysticManager.zip
*.zip
MysticManager.zip
*.exe
8 changes: 4 additions & 4 deletions MysticManager.ahk
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
;========================================================================
;
; MysticManager v1.0.0
; MysticManager v1.0.1
;
; rolls items till the desired stat roll is visible
;
; Created by DaLeberkasPepi
; https://github.com/DaLeberkasPepi
;
; Last Update: 2018-03-03 24:00 GMT+1
; Last Update: 2018-06-23 13:00 GMT+1
;
;========================================================================

Expand Down Expand Up @@ -248,9 +248,9 @@ ExtractNumbers(MyString){
}
StringReplace, NewVar, NewVar,`,,, ;;remove dots
; Remove Leading dashes dots and commas
NewVar := RegExReplace(NewVar, "^[\-.,]*")
NewVar := RegExReplace(NewVar, "^[\-.,A-Za-z]*")
; Trailing
NewVar := RegExReplace(NewVar, "[\-.,]*$")
NewVar := RegExReplace(NewVar, "[\-.,A-Za-z]*$")
Return NewVar
}

Expand Down

0 comments on commit 65097cf

Please sign in to comment.