Fix missing default when using the menu to filter.
Don't add `;op:yes` since that's the default already.
This commit is contained in:
parent
a472dae321
commit
8116b48d08
@ -1083,16 +1083,13 @@ Filter =
|
|||||||
else
|
else
|
||||||
"\\#{c}"
|
"\\#{c}"
|
||||||
|
|
||||||
re =
|
re = if type in ['uniqueID', 'MD5']
|
||||||
if type in ['uniqueID', 'MD5']
|
"/#{re}/"
|
||||||
"/#{re}/"
|
else
|
||||||
else
|
"/^#{re}$/"
|
||||||
"/^#{re}$/"
|
|
||||||
unless Filter.menu.post.isReply
|
|
||||||
re += ';op:yes'
|
|
||||||
|
|
||||||
# Add a new line before the regexp unless the text is empty.
|
# Add a new line before the regexp unless the text is empty.
|
||||||
$.get type, '', (item) ->
|
$.get type, Conf[type], (item) ->
|
||||||
save = item[type]
|
save = item[type]
|
||||||
save =
|
save =
|
||||||
if save
|
if save
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user