Skip to content

Conversation

152334H
Copy link
Contributor

@152334H 152334H commented May 20, 2022

don't mind the dirty commit history, the changes are

  1. strip \u200B (aka Zero Width Spaces) from problem statements
  2. add Error::PremiumError for queries to premium problems with non-premium accounts (Error::CookieError returns when LEETCODE_SESSION isn't valid in general)

example:

$ cargo run p 1214
[1214] Two Sum BSTs is on the run...
error: Your leetcode account lacks a premium subscription, which the given problem requires.
If this looks like a mistake, please open a new issue at: https://github.com/clearloop/leetcode-cli/

@clearloop clearloop merged commit 2b373c0 into clearloop:master May 20, 2022
@clearloop
Copy link
Owner

clearloop commented May 20, 2022

Thanks!

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