I noticed a lot of people doing crazy hacks like: '<Wait>'*5 in their templates. This PR steals some good features from Packer, such as <Wait5> and <Wait10>.
I also added some other special keys to match-up with what's available in Packer templates.
Add <bs>, <wait5>, <wait10>, <del> special keys (Packerisms)
since we are using regexp we could handle the <wait(.*)> and use $1 for the value:
1.9.3-p547 :001 > /<wait(.*)>/ =~ "<wait>"
1.9.3-p547 :002 > $1
1.9.3-p547 :003 > /<wait(.*)>/ =~ "<wait5>"
1.9.3-p547 :004 > $1
and great that you are working on making us closer to packer - want to add support for it's templates soon
Merge branch 'master' into scancodes-packerisms
ok let me think about this.. could be dangerous but maybe your idea will work.
you can always do <wait([[:digit:]]*)> add extra check for "" and append to_i:)
Yes I was thinking of using /<wait(\d*)>/ .. just doing some tests here.
hey, any progress? need help with that? or should I merge and add the regexp thing?
Sorry, I'll get back to this on the weekend.
oh the weekend past, let me know if you still want to work on the improvement or if I should finish it.
improved matching wait multiplayer, update #989
and added the matching, let me know how it works for you (... my vbox just died)
use to_s instead of string from MatchData, fix #1011, update #989