cmfcmf/Anno2018

DAT Parser constant assignment ReGex little mistake

Green-Sky opened this issue · 1 comments

Hey, I think you made a little mistake regarding the Constant Assignment ReGex matching string /^(@?)(\w+)\s*=\s*((?:\d+|\+|\w+)+)$/, because it accepts leading @. I don't think that's correct, but it's not critical, because it should never occur.

Better version:
/^(\w+)\s*=\s*((?:\d+|\+|\w+)+)$/

Ok Sorry, it is correct. I must have overlooked the 4 occurrences.
I'm closing this.