luzhanov / anki-adder-plus

"Anki Adder" Chrome plugin
38 stars 4 forks source link

Error, If a deck name contains a URL #5

Closed Zerg00s closed 5 years ago

Zerg00s commented 7 years ago

If one of the decks contains a URL - the popup crashes with an error.

Example of the Deck name that will cause an error: Angular 2 - http://bit.ly/1TQJmwG

Where there error occurs: form.js, line 785, var endName = /(::|^)([^::]*)$/.exec(localStorage["deck" + n])[2];

P.S. thank you for the plugin. It's awesome!