Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cozitive attrs escape #443

Merged
merged 7 commits into from
Jan 12, 2023
Merged

Cozitive attrs escape #443

merged 7 commits into from
Jan 12, 2023

Conversation

hackerwins
Copy link
Member

@hackerwins hackerwins commented Jan 12, 2023

What this PR does / why we need it:

#439

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Additional documentation:


Checklist:

  • Added relevant tests or not required
  • Didn't break anything

cozitive and others added 7 commits January 5, 2023 15:50
In RichText's attrs, missing backslash before special characters caused
JSON parse error. RHT.Marshal() now inserts escape characters when
constructing JSON encoding.
- Add the missing `unwatchDocs` function in `WatchDocuments` API
- Extract `types.NewAccessAttributes`
- Clean up code that uses a magic number
To prevent dynamic type change of Counter, explicit type specification is
required in the Counter constructor. Moreover, double type is removed in Counter
to mitigate confusion.

* Integrate duplicated type-casting logic in NewCounter and Increase
@hackerwins hackerwins merged commit 121b337 into main Jan 12, 2023
@hackerwins hackerwins deleted the cozitive-attrs-escape branch January 12, 2023 08:17
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.

2 participants