Fix regex.match() in doRegexTest() missing start of string

doRegexTest() does not reset regex.lastIndex before beginning the
search again with .match() (after using .test() to confirm at least
one match exists). As a result the first match in the file could be
missed by .match().

In practice this doesn't seem to happen as the .test() call runs on
a shorter version of the file without comments, so the .match() call
starts sufficiently early in the file to catch the first match hit by
test().

To be thorough regex.lastIndex should be reset before the first test()
call in case it was non-zero. However, currently the regex object passed to
doRegexTest() is always newly created, so it's always 0 before test().
Always use up-to-date user picture in the activity feed
Pass around 'me' object in ActivityAdapter
Follow up on code review
Merge pull request #3804 from bp323/changePic

Profile pictures in activity stream update when user changes profile picture, but revert to old picture when screen is refreshed
Fix unusedkeys test not detecting key use in widgets with no js
(Release 7.0.0) Bump version
(Crowdin) Change the JAR location to HTTPS
(Crowdin) Synchronize with crowdin
(Crowdin) Synchronize updated translations from Crowdin
(Crowdin) Synchronize new translations with crowdin
(Release 7.0.1) Bump version
(Issue #3809) Fix margin calculation; only process pages as required
(Issue #3809) clean up code
(Issue #3809) add note to comment
Merge pull request #3809 from sathomas/issue3809

PDF upload preview chops off first page on mobile
(Issue #3767) add license info to test files
Revert "(Issue #3767) add license info to test files"

This reverts commit 326b97cac98f523b13d4ed8c59a8d779c9323919.
(Issue #3767) add license info to test files
Merge pull request #3817 from sathomas/casperCopyright

Add license info to test files