You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this repo is a bit old now, but I've found it very useful. One problem I've run into (which may be caused by a change in the behaviour of as3 RegExp since the last commit?):
In the com.jeremyruppel.routing.rules.RegExpRule class, pattern executing returns null after the first time it's run. This is because all patterns seem to have the g flag on by default, which means the execute starts from where it left off (pattern.lastIndex).
To fix this I've added the line _pattern.lastIndex = 0 to RegExpRulematches() and execute() methods. Will do a quick fork + pull request...
The text was updated successfully, but these errors were encountered:
I know this repo is a bit old now, but I've found it very useful. One problem I've run into (which may be caused by a change in the behaviour of as3 RegExp since the last commit?):
In the
com.jeremyruppel.routing.rules.RegExpRule
class, pattern executing returns null after the first time it's run. This is because all patterns seem to have theg
flag on by default, which means the execute starts from where it left off (pattern.lastIndex
).To fix this I've added the line
_pattern.lastIndex = 0
toRegExpRule
matches()
andexecute()
methods. Will do a quick fork + pull request...The text was updated successfully, but these errors were encountered: