Strip /r/ and r/ from subreddit names entered into the sidebar UI.

This commit is contained in:
Max Goodman
2013-04-18 01:11:04 -07:00
parent 97cc413aae
commit 79c5508c49

View File

@@ -122,6 +122,7 @@ r.multi.MultiDetails = Backbone.View.extend({
var nameEl = this.$('.add-sr .sr-name'),
srName = $.trim(nameEl.val())
srName = srName.split('r/').pop()
if (!srName) {
return
}