Commit Graph

178 Commits

Author SHA1 Message Date
4df6bd5477 Merge branch 'master' into use-dummy-api-for-overall-tests 2019-09-05 14:27:01 +09:00
08350a1aca Add parenthesis handling to old link format
Allow users to put both balanced round parentheses, as well as
unbalanced escaped ones, in old style link text. The implementation
is the same as for Markdown and new style links, except for swapping
all instances of

    \[\]

to

    \(\)

for obvious reasons (different type of parenthesis requiring escaping).
Tests also included.
2019-09-04 00:21:27 +02:00
f04add6d9e Add bracket handling to Markdown link format
Allow users to put both balanced brackets, as well as unbalanced
escaped ones, in Markdown link text. The implementation is the exact
same as in the case of new format links.

For completion's sake, tests also included.
2019-09-04 00:07:00 +02:00
a8f16503e2 Add backslash escaping to new link format
For users to be able to add square brackets inside of links using
the new format, the regular expression used for parsing those links
contained a balancing group, which can be used for matching pairs
of tokens (in this case, opening and closing brackets, in that order).
However, this means that users could not post links with unmatched
brackets inside of them (ie. ones that contain single brackets, or
a closing bracket and then an opening one). Allow for escaping opening
and closing brackets using the backslash character.

The change substitutes this old fragment of the regex in the display
text group:

    [^\[\]]*        // any character other than closing/opening bracket

for this one:

    (((?<=\\)[\[\]])|[^\[\]])*

The second pattern in the alternative remains the same; the first one
performs the escaping, as follows:

    (
        (?<=\\)     // positive lookbehind expression:
                    // this match will succeed, if the next expression
                    // is preceded by a single backslash
        [\[\]]      // either an opening or closing brace
    )

Since the entire display group is matched, unfortunately the lookbehind
expression does not actually strip the backslashes, so they are
manually stripped in handleMatches.

As demonstrated in the unit tests attached, this also allows balanced
brackets to be mixed with escaped ones.
2019-09-03 23:18:39 +02:00
d21d68b36c Refactor to match web implementation 1:1 2019-09-02 17:04:38 +09:00
0985b1679f Move enum to response class 2019-09-02 15:57:55 +09:00
3d551b08a9 Rename legacy actions 2019-09-02 15:57:23 +09:00
13fadec6ec Merge remote-tracking branch 'upstream/master' into kudosu-info 2019-09-02 15:25:41 +09:00
d303083179 Update to match api 2019-08-29 12:29:31 +03:00
3347ee8170 Merge branch 'master' into beatmapset-genre-language 2019-08-29 09:57:53 +03:00
7f0a4fbef9 Merge remote-tracking branch 'refs/remotes/ppy/master' into kudosu-info 2019-08-27 15:11:55 +03:00
524547adbf Merge branch 'master' into implement-grouped-difficulty-icons 2019-08-24 17:34:58 +09:00
8584d3ba23 Add many difficulties beatmap direct panel to the tests 2019-08-24 00:31:36 +03:00
67acf20805 Add test beatmap set with many difficulties 2019-08-23 18:31:53 +03:00
f4d2bb036b Expand KudosuAction list 2019-08-22 16:50:54 +03:00
c4344f3f7c CI fixes 2019-08-20 15:29:32 +03:00
832b365bd0 Add testing 2019-08-20 15:17:31 +03:00
9c43021c28 Merge branch 'master' into previous-usernames 2019-08-13 14:21:44 +09:00
8d3f2f7645 Drop container from name 2019-08-13 14:09:10 +09:00
5681d1097c Move into components namespace 2019-08-13 14:07:40 +09:00
a83afd00b5 Merge branch 'master' into beatmap-scope-selector 2019-08-12 15:48:53 +09:00
487979b016 Add Testing 2019-08-07 09:31:07 +03:00
a99d6536c2 CI fix 2019-08-07 08:49:04 +03:00
b064df91a7 Initial implementation 2019-08-07 08:33:55 +03:00
c591cb83eb Merge remote-tracking branch 'refs/remotes/ppy/master' into move-graph-data-to-statistics 2019-08-05 12:45:29 +03:00
cd7b6d2d27 TestCase improvement 2019-08-04 15:00:02 +03:00
d693a54c84 Move RankHistoryData to User Statistics 2019-08-04 14:35:26 +03:00
3ae5428dad ProfileRulesetSelector improvements 2019-08-04 14:15:16 +03:00
416f9d89db CI fixes 2019-08-03 05:49:01 +03:00
37be4fbf16 Use GridContainer for layout 2019-08-03 05:34:14 +03:00
f81238b8b1 Add online test 2019-08-03 04:45:41 +03:00
4c0a9aeab7 Add null user step 2019-08-02 07:44:09 +03:00
de96e5dfc6 Apply suggested changes 2019-08-02 07:41:11 +03:00
5547592768 CI fixes 2019-08-01 23:04:18 +03:00
90c59ab39d implement PreviousUsernamesContainer 2019-08-01 21:26:59 +03:00
849ed0c69d Acquire api access for online tests 2019-07-31 22:44:44 +03:00
034345f1bd Resolve API for dummy-caching tests 2019-07-31 22:43:05 +03:00
de8f502871 Add test 2019-07-29 02:46:33 +09:00
c8192d6f3a Merge remote-tracking branch 'refs/remotes/ppy/master' into underscored_link 2019-07-14 19:10:47 +03:00
cd7c03c13a Add genre and language sections to beatmapset overlay 2019-07-11 16:44:48 +03:00
953d32366c Move request inside the ScoresContainer again 2019-07-10 19:40:29 +03:00
a041421e0d Merge remote-tracking branch 'refs/remotes/ppy/master' into user-best-score 2019-07-10 19:39:41 +03:00
e23d42522c Merge pull request #5295 from peppy/fix-misc-inspections
Fix a few inspections from EAP r#
2019-07-11 00:56:18 +09:00
2285c2b1df Merge branch 'master' into user-best-score 2019-07-11 00:31:26 +09:00
9907a58ec4 Revert animations and apply suggested changes 2019-07-09 17:38:17 +03:00
276873ff8a remove unused field 2019-07-09 12:28:59 +03:00
e8b9b1b0bf visibility logic adjustments 2019-07-09 12:16:58 +03:00
8d6af1625a Visibility improvements 2019-07-09 11:40:51 +03:00
eb4ef8f6ac CI fixes 2019-07-09 08:25:10 +03:00
5d81445454 Move api request outside the scores container 2019-07-09 08:05:34 +03:00