Bartłomiej Dach
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
Dean Herbert
91e3eeb1c0
Merge branch 'master' into beatmap-mod-selector
2019-09-02 21:35:42 +09:00
Dean Herbert
d21d68b36c
Refactor to match web implementation 1:1
2019-09-02 17:04:38 +09:00
Dean Herbert
0985b1679f
Move enum to response class
2019-09-02 15:57:55 +09:00
Dean Herbert
3d551b08a9
Rename legacy actions
2019-09-02 15:57:23 +09:00
Dean Herbert
13fadec6ec
Merge remote-tracking branch 'upstream/master' into kudosu-info
2019-09-02 15:25:41 +09:00
StanR
d303083179
Update to match api
2019-08-29 12:29:31 +03:00
StanR
3347ee8170
Merge branch 'master' into beatmapset-genre-language
2019-08-29 09:57:53 +03:00
Andrei Zavatski
7f0a4fbef9
Merge remote-tracking branch 'refs/remotes/ppy/master' into kudosu-info
2019-08-27 15:11:55 +03:00
Dean Herbert
524547adbf
Merge branch 'master' into implement-grouped-difficulty-icons
2019-08-24 17:34:58 +09:00
iiSaLMaN
8584d3ba23
Add many difficulties beatmap direct panel to the tests
2019-08-24 00:31:36 +03:00
iiSaLMaN
67acf20805
Add test beatmap set with many difficulties
2019-08-23 18:31:53 +03:00
Andrei Zavatski
f4d2bb036b
Expand KudosuAction list
2019-08-22 16:50:54 +03:00
Andrei Zavatski
c4344f3f7c
CI fixes
2019-08-20 15:29:32 +03:00
Andrei Zavatski
832b365bd0
Add testing
2019-08-20 15:17:31 +03:00
Lucas A
7d18132e61
Merge branch 'master' into news-overlay-header
2019-08-14 20:08:36 +02:00
Dan Balasescu
9c43021c28
Merge branch 'master' into previous-usernames
2019-08-13 14:21:44 +09:00
smoogipoo
8d3f2f7645
Drop container from name
2019-08-13 14:09:10 +09:00
smoogipoo
5681d1097c
Move into components namespace
2019-08-13 14:07:40 +09:00
Lucas A
87811afade
Add missing licence headers to added files.
2019-08-12 20:16:41 +02:00
Dean Herbert
bd61642ac6
Merge branch 'master' into beatmap-mod-selector
2019-08-13 00:54:21 +09:00
Dean Herbert
a83afd00b5
Merge branch 'master' into beatmap-scope-selector
2019-08-12 15:48:53 +09:00
Lucas A
b92e331730
Add tabcontrol logic to news overlay
2019-08-10 17:06:52 +02:00
Lucas A
4b0ac381b7
Add visual tests.
2019-08-10 15:39:13 +02:00
Andrei Zavatski
d9fd054102
Merge master with conflicts resolved
2019-08-07 16:05:28 +03:00
Andrei Zavatski
487979b016
Add Testing
2019-08-07 09:31:07 +03:00
Andrei Zavatski
a99d6536c2
CI fix
2019-08-07 08:49:04 +03:00
Andrei Zavatski
87974850dd
Initial implementation
2019-08-07 08:42:43 +03:00
Andrei Zavatski
b064df91a7
Initial implementation
2019-08-07 08:33:55 +03:00
Andrei Zavatski
c591cb83eb
Merge remote-tracking branch 'refs/remotes/ppy/master' into move-graph-data-to-statistics
2019-08-05 12:45:29 +03:00
Andrei Zavatski
cd7b6d2d27
TestCase improvement
2019-08-04 15:00:02 +03:00
Andrei Zavatski
d693a54c84
Move RankHistoryData to User Statistics
2019-08-04 14:35:26 +03:00
Andrei Zavatski
3ae5428dad
ProfileRulesetSelector improvements
2019-08-04 14:15:16 +03:00
Andrei Zavatski
416f9d89db
CI fixes
2019-08-03 05:49:01 +03:00
Andrei Zavatski
37be4fbf16
Use GridContainer for layout
2019-08-03 05:34:14 +03:00
Andrei Zavatski
f81238b8b1
Add online test
2019-08-03 04:45:41 +03:00
Andrei Zavatski
4c0a9aeab7
Add null user step
2019-08-02 07:44:09 +03:00
Andrei Zavatski
de96e5dfc6
Apply suggested changes
2019-08-02 07:41:11 +03:00
Andrei Zavatski
5547592768
CI fixes
2019-08-01 23:04:18 +03:00
Andrei Zavatski
90c59ab39d
implement PreviousUsernamesContainer
2019-08-01 21:26:59 +03:00
iiSaLMaN
849ed0c69d
Acquire api access for online tests
2019-07-31 22:44:44 +03:00
iiSaLMaN
034345f1bd
Resolve API for dummy-caching tests
2019-07-31 22:43:05 +03:00
Dean Herbert
de8f502871
Add test
2019-07-29 02:46:33 +09:00
Andrei Zavatski
c8192d6f3a
Merge remote-tracking branch 'refs/remotes/ppy/master' into underscored_link
2019-07-14 19:10:47 +03:00
StanR
cd7c03c13a
Add genre and language sections to beatmapset overlay
2019-07-11 16:44:48 +03:00
Andrei Zavatski
953d32366c
Move request inside the ScoresContainer again
2019-07-10 19:40:29 +03:00
Andrei Zavatski
a041421e0d
Merge remote-tracking branch 'refs/remotes/ppy/master' into user-best-score
2019-07-10 19:39:41 +03:00
Dean Herbert
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
Dean Herbert
2285c2b1df
Merge branch 'master' into user-best-score
2019-07-11 00:31:26 +09:00
Andrei Zavatski
9907a58ec4
Revert animations and apply suggested changes
2019-07-09 17:38:17 +03:00
Andrei Zavatski
276873ff8a
remove unused field
2019-07-09 12:28:59 +03:00
Andrei Zavatski
e8b9b1b0bf
visibility logic adjustments
2019-07-09 12:16:58 +03:00
Andrei Zavatski
8d6af1625a
Visibility improvements
2019-07-09 11:40:51 +03:00
Andrei Zavatski
eb4ef8f6ac
CI fixes
2019-07-09 08:25:10 +03:00
Andrei Zavatski
5d81445454
Move api request outside the scores container
2019-07-09 08:05:34 +03:00
Andrei Zavatski
59cfd39670
Add testcase
2019-07-08 12:02:10 +03:00
Dean Herbert
72362d92d4
Fix a few inspections from EAP r#
2019-07-08 16:34:11 +09:00
iiSaLMaN
90d5484818
Return BPM back to OnlineInfo
...
Revert commit of "Move BPM out of OnlineInfo"
2019-07-08 09:10:41 +03:00
iiSaLMaN
729f0901f7
Move Length out of OnlineInfo
2019-07-07 20:25:36 +03:00
iiSaLMaN
3ea9629daf
Move BPM out of OnlineInfo
2019-07-07 20:11:44 +03:00
Dean Herbert
4885f0f0c7
Add messaging telling users how to leave changelog comments
2019-07-04 15:47:06 +09:00
Andrei Zavatski
d6740d9688
Merge remote-tracking branch 'refs/remotes/ppy/master' into direct-ruleset-selector
2019-07-03 14:19:41 +03:00
Dean Herbert
23acddcb56
Rename download buttons to avoid ambiguity
2019-07-03 12:02:35 +09:00
Andrei Zavatski
2971bd8cbc
Add disable trigger to a testcase
2019-07-02 13:22:38 +03:00
Dean Herbert
e25158f434
Rename move and fix tests
2019-07-01 19:35:04 +09:00
naoey
3cfa5a767f
Add test for download button states
2019-06-27 17:31:21 +05:30
Dean Herbert
98ba38d421
Merge branch 'master' into user_profile_modes
2019-06-27 15:34:21 +09:00
smoogipoo
b397652af4
Remove ability to set arbitrary accent colours
2019-06-27 15:02:26 +09:00
smoogipoo
7f5587d894
RulesetTabItem -> ProfileRulesetTabItem
2019-06-27 14:54:31 +09:00
smoogipoo
803198ff20
Gamemode -> Ruleset
2019-06-27 14:53:18 +09:00
KingLuigi4932
04f5ee21e1
Merge remote-tracking branch 'origin/not-available-to-download' into not-available-to-download
2019-06-27 07:49:35 +03:00
iiSaLMaN
e78ecb9757
More anonymising in tests
2019-06-27 07:48:57 +03:00
smoogipoo
9e2e393ab7
DownloadAllowed -> DownloadEnabled
2019-06-27 13:38:21 +09:00
smoogipoo
c1277b5db2
Test the download button directly for safety
2019-06-27 13:35:14 +09:00
Dean Herbert
3294464bc6
Fix typo in variable
2019-06-27 12:47:05 +09:00
Dean Herbert
32c3bee71b
Avoid public exposure
2019-06-27 12:11:04 +09:00
Dean Herbert
d6da21b0f0
Tidy up fetch methods
...
Anonymise some test data further
2019-06-27 12:00:31 +09:00
Dean Herbert
322d92d3e0
Rename class to BeatmapAvailability
2019-06-27 11:40:22 +09:00
iiSaLMaN
9ada4d68b1
Make fields protected and expose them in tests
2019-06-26 22:42:34 +03:00
Salman Ahmed
2e383a1f83
Trim whitespaces
2019-06-26 05:17:28 +03:00
Salman Ahmed
33fbf56b4c
Remove test beatmapsets and use existing set info
2019-06-26 05:01:29 +03:00
iiSaLMaN
c76505c9c3
Use test beatmap sets instead of real info
2019-06-25 03:21:55 +03:00
Dean Herbert
6a541d9a10
Merge branch 'master' into user_profile_modes
2019-06-25 00:59:51 +09:00
iiSaLMaN
a1c58b164c
Merge branch 'master' into not-available-to-download
2019-06-21 14:16:31 +03:00
Dean Herbert
19be83181f
Add back missing test scene
2019-06-21 15:32:06 +09:00
Dean Herbert
6c5599f874
Fix chat being dismissed in test scene when it shouldn't
2019-06-21 15:09:54 +09:00
KingLuigi4932
eb9022257d
Update direct panel test
2019-06-20 18:57:52 +03:00
Andrei Zavatski
e83710d3b8
Add a testcase
2019-06-19 23:15:00 +03:00
KingLuigi4932
a9f87e06f8
Make field readonly
2019-06-19 19:08:18 +03:00
KingLuigi4932
4fba255bd9
Remove gap
2019-06-19 17:56:40 +03:00
KingLuigi4932
9f25d3cd72
More changes and improvements
2019-06-19 17:55:36 +03:00
Andrei Zavatski
e16de58450
Add a testcase
2019-06-19 12:34:01 +03:00
KingLuigi4932
6e28294182
Fix another test
2019-06-19 04:27:31 +03:00
KingLuigi4932
3876442143
More simplifies + fix test
2019-06-19 03:37:08 +03:00
KingLuigi4932
a0609f28d7
Revert some changes + simplify BeatmapNotAvailable
2019-06-19 01:43:28 +03:00
iiSaLMaN
5278c5f365
Merge branch 'master' into not-available-to-download
2019-06-19 01:14:32 +03:00
Dean Herbert
587edcb716
Merge branch 'master' into fix-beatmapoverlay-graphs
2019-06-15 13:42:13 +09:00
Dean Herbert
bc574520bf
Update ScrollContainer usages in line with framework changes
2019-06-14 15:55:32 +09:00
smoogipoo
39f9deea96
Add success rate test scene
2019-06-13 18:44:00 +09:00
smoogipoo
f9f32311b7
Add some randomness
2019-06-13 18:43:44 +09:00
smoogipoo
f2b5f274cf
Add details test scene + fix metrics not getting updated correctly
2019-06-13 18:31:39 +09:00
smoogipoo
72f729cf3b
Refactor beatmap set overlay test scene
2019-06-13 18:14:57 +09:00
smoogipoo
0a79b444d9
Move metrics to beatmap set
2019-06-13 16:52:49 +09:00
smoogipoo
aef94ce9f1
Make BeatmapMetrics non-IEnumerables
2019-06-13 16:30:38 +09:00
KingLuigi4932
1a50544c94
Add tests for undownloadable / parts-removed beatmapsets
2019-06-12 20:42:52 +03:00
Dean Herbert
021d0273f9
Split out user activity from user status ( #4619 )
...
Split out user activity from user status
Co-authored-by: Dean Herbert <pe@ppy.sh>
2019-06-12 20:14:03 +09:00
Dean Herbert
b2b3df3885
Merge remote-tracking branch 'upstream/master' into settings-footer-show-changelog-current-build
2019-06-12 18:28:43 +09:00
Dean Herbert
f358fce9ab
Move activity (writable) bindable to APIAccess so it correctly transfers between users
2019-06-12 18:04:57 +09:00
Dean Herbert
a9c229b1ec
Merge remote-tracking branch 'upstream/master' into user-status-wiring
2019-06-12 16:00:35 +09:00
Dean Herbert
bb8a77d27d
Apply all steps to same user panel so interactions can be observed
2019-06-12 15:59:52 +09:00
KingLuigi4932
35cc45c9d9
Small update
2019-06-11 23:11:03 +03:00
Lucas A
15893bbb75
Drop UserActivity prefix for subclasses nested in UserActivity + Change status messages.
2019-06-11 19:41:48 +02:00
KingLuigi4932
13cd22e397
Test scene for BeatmapNotAvailable
2019-06-11 14:58:46 +03:00
Dean Herbert
620c2311ac
Add test
2019-06-11 15:39:18 +09:00
Dean Herbert
609a82bc94
Update VisibilityContainer usage in line with framework
2019-06-11 15:13:58 +09:00
Lucas A
141775d98c
Merge remote-tracking branch 'upstream/master' into user-status-wiring
2019-06-10 21:41:00 +02:00
Lucas A
2e911d0e96
Merge remote-tracking branch 'upstream/master' into settings-footer-show-changelog-current-build
2019-06-10 19:13:54 +02:00
iiSaLMaN
fc8644a73e
Use ScoreRank.D instead of F
2019-06-08 19:34:52 +03:00
EVAST9919
923f9fb6cd
Naming adjustments
2019-06-07 01:43:26 +03:00
Lucas A
a2bc5b538e
Merge remote-tracking branch 'upstream/master' into user-status-wiring
2019-06-05 16:59:38 +02:00
EVAST9919
54800aa4df
make the variable local
2019-06-04 19:45:46 +03:00
EVAST9919
e9403bf2f7
Move GamemodeControl to UserProfileOverlay
2019-06-04 19:33:55 +03:00
EVAST9919
8dea191998
Add a testcase
2019-06-04 18:37:41 +03:00
Dean Herbert
80a66b8b3a
Merge remote-tracking branch 'upstream/master' into audio-refactor-update
2019-06-04 12:08:21 +09:00
smoogipoo
53a39e9142
Merge remote-tracking branch 'origin/master' into audio-refactor-update
2019-06-04 10:50:33 +09:00
Dean Herbert
a5a025de68
Add proper tests
2019-06-04 10:26:35 +09:00
Dean Herbert
1eab4e179d
Add sample action to test so hover effect is visible
2019-06-03 17:10:33 +09:00
Dean Herbert
115a75e4c6
Use a constant for lazer variables
2019-06-03 13:16:05 +09:00
Dean Herbert
dff7053a07
Merge branch 'master' into more_button_update
2019-06-03 11:48:05 +09:00
EVAST9919
6957b20309
Merge remote-tracking branch 'refs/remotes/ppy/master' into underscored_link
2019-06-03 03:13:46 +03:00
Lucas A
b3f6640d11
Merge remote-tracking branch 'upstream/master' into user-status-wiring
2019-05-31 12:41:26 +02:00
Dean Herbert
f33a5bc54c
Centralise and update WorkingBeatmap creation in test cases
2019-05-31 14:40:53 +09:00
smoogipoo
c211f1d0fe
Merge remote-tracking branch 'Joehuu/master' into changelog-overlay
2019-05-31 12:28:28 +09:00
EVAST9919
cfa0ef6fd9
convert field to a local variable
2019-05-30 23:22:08 +03:00
EVAST9919
fe9e53e383
Add a testcase
2019-05-30 23:07:04 +03:00
EVAST9919
52fad723a2
Implement DrawableMostPlayedBeatmap
2019-05-29 19:51:59 +03:00
Lucas A
a819dd764f
Merge remote-tracking branch 'upstream/master' into user-status-wiring
2019-05-25 11:02:19 +02:00
EVAST9919
cda97a61fa
Add a bit of smoothness to the rank graph
2019-05-24 19:43:53 +03:00
Dean Herbert
b588638740
Use TabControl instead of custom logic
2019-05-22 19:51:16 +09:00
Dean Herbert
9f9e86f18c
Rename classes and fix back-to-front state
2019-05-22 17:04:21 +09:00
Dean Herbert
555822a68d
Remove unnecessary brackets
2019-05-22 13:28:41 +09:00
Dean Herbert
7169eb67d2
Merge branch 'master' into abstract-profile-header
2019-05-21 15:33:47 +09:00
Dean Herbert
a18e0b3b2f
Fix test scene
2019-05-21 14:46:12 +09:00
Dean Herbert
d1616e09b6
Merge branch 'fix-spritetext-usage' into HoutarouOreki-changelog-overlay
2019-05-21 14:18:01 +09:00
Dean Herbert
4ac2acbfc0
Fix usages of SpriteText (instead of OsuSpriteText)
2019-05-21 14:13:52 +09:00
Dean Herbert
aba945934d
Move OverlayHeaderTabControl to correct namespace
2019-05-21 13:58:12 +09:00
Dean Herbert
5a9c3ab9fa
Move UserProfileOverlay's header into an abstract implementation
2019-05-21 13:58:03 +09:00
Dean Herbert
340b207fa0
Delete breadcrumb implementation
2019-05-21 13:37:35 +09:00
Dean Herbert
9a769c9f15
Move OverlayHeaderTabControl to correct namespace
2019-05-21 13:36:31 +09:00
Dean Herbert
a5bd3262be
Move UserProfileOverlay's header into an abstract implementation
2019-05-20 18:02:13 +09:00
Dean Herbert
3fa1545ea4
Huge refactor pass focusing on ChangelogContent
2019-05-19 02:09:08 +09:00
Dean Herbert
c41ec20236
Improve load and switch logic between views
2019-05-17 18:31:53 +09:00
Dean Herbert
e94b9feebd
Fix dynamic recompilation in TestSceneChangelogOverlay
2019-05-17 18:31:53 +09:00
Lucas A
5a72d509f2
Resolve merge conflicts
2019-05-16 18:48:15 +02:00
Dean Herbert
19a179db92
Bring up-to-date with master
2019-05-15 18:30:02 +09:00
Roman Kapustin
459a285cd8
Rename test cases to test scenes inline with the framework change
2019-05-14 22:37:25 +03:00
Lucas A
2d966682dc
Merge remote-tracking branch 'upstream/master' into user-status-wiring
2019-05-14 18:09:58 +02:00
Dean Herbert
a765f2502d
Add simple test case for FullscreenOverlay
2019-05-14 15:14:00 +09:00
Dean Herbert
ca2662e941
Rename incorrectly named test cases
2019-05-14 14:58:36 +09:00
Lucas A
1fe4d20d9b
Fix references to UserActivities in Tests
2019-05-12 17:47:02 +02:00
Lucas A
18fc965d7a
Merge remote-tracking branch 'upstream/master' into user-status-wiring
2019-05-12 17:39:13 +02:00
Paul Teng
7adaa09263
Move tab channel class into tab item class
2019-05-12 06:31:11 -04:00
Paul Teng
d53fb9a5c8
Check against type instead of channel name
2019-05-12 06:11:16 -04:00
Lucas A
a50bbf7f42
Make appveyor happy.
2019-05-05 21:32:23 +02:00
Lucas A
3d8b56fe57
Fix user status related unit tests
2019-05-05 21:11:52 +02:00
Lucas A
7e42068a14
Merge remote-tracking branch 'upstream/master' into user-status-wiring
2019-04-28 19:48:35 +02:00
smoogipoo
2f4bf423a4
Renamespace
2019-04-26 13:51:39 +09:00
smoogipoo
838325fed4
Remove HasTooltipContainer, use separate composites
2019-04-26 11:58:45 +09:00
smoogipoo
9d5b81165e
Adjust button stylings
2019-04-25 19:51:05 +09:00
smoogipoo
0eca9b9683
Center -> centre
2019-04-25 18:43:29 +09:00
smoogipoo
b33c0e9a93
Cleanup bottom header container
2019-04-25 18:42:19 +09:00
Lucas A
361c0ec9f2
Allow UserStatusSoloGame to provide metadata such as the ruleset the current beatmap is played in
2019-04-13 13:18:44 +02:00
Lucas A
5ab278f9ea
Add missing user statuses to tests
2019-04-12 23:01:11 +02:00
jorolf
c1db635933
Merge branch 'master' of git://github.com/ppy/osu into profile-header-update
2019-04-09 20:42:39 +02:00
smoogipoo
e13fffaca3
Make ScoreTable use TableContainer
2019-04-04 17:53:23 +09:00
jorolf
ba87136451
add gradient and fix remaining error
2019-04-04 00:57:15 +02:00
jorolf
ccc804a9b2
get everything working again
2019-04-04 00:24:42 +02:00
jorolf
5bc6042309
Merge branch 'master' of git://github.com/ppy/osu into profile-header-update
2019-04-03 22:59:27 +02:00
Dean Herbert
5d37851d34
Rename and move test to correct location
2019-04-03 18:14:59 +09:00
smoogipoo
3b7d26cca8
Remove custom styled text
2019-04-03 17:49:01 +09:00
smoogipoo
adab31fd58
Cleanup + fix up score table layout
2019-03-26 17:38:56 +09:00
smoogipoo
6a9f005ed4
Merge remote-tracking branch 'Joehuu/master' into update-beatmap-scores-design
...
# Conflicts:
# osu.Game.Tests/Visual/SongSelect/TestCaseBeatmapScoresContainer.cs
2019-03-25 15:21:29 +09:00
Dean Herbert
a1c5eda05b
Add grouping of visual tests
2019-03-25 01:02:36 +09:00