Skip to content

Conversation

@Georgezxh
Copy link

fix the issue#5648

Purpose / Description

problem: In nightmode, when entering contents like "color:white" in front or back fields, then we review the flashcard we will find the card reads "color: #000000". The color name after "color:" is replaced by the format of 0x......

Approach

The problem is that the current color inversion system tries to match a regex to the whole card content. The regex searches for css attributes like color: ... and background: .... so the contents in card will be searched successfully.
The old code calls this regex in nightmode, so I cancelled this call, and the bug disappeared.

How Has This Been Tested?

Reproduction Steps:
1.Enter "color: red" in front or back fields
2.Preview the flashcard
Then we will find the card reads "color:red",which is correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant