mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-02-11 15:14:53 -05:00
Strip /r/ and r/ from subreddit names entered into the sidebar UI.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user