Skip to content

Commit 1ab0acf

Browse files
committed
trim then filter
1 parent 9723d0e commit 1ab0acf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content_scripts/vimium_frontend.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,12 +804,12 @@ findAndFollowRel = (value) ->
804804

805805
window.goPrevious = ->
806806
previousPatterns = settings.get("previousPatterns") || ""
807-
previousStrings = previousPatterns.split(",").filter((s) -> s.length)
807+
previousStrings = previousPatterns.split(",").filter( (s) -> s.trim().length )
808808
findAndFollowRel("prev") || findAndFollowLink(previousStrings)
809809

810810
window.goNext = ->
811811
nextPatterns = settings.get("nextPatterns") || ""
812-
nextStrings = nextPatterns.split(",").filter((s) -> s.length)
812+
nextStrings = nextPatterns.split(",").filter( (s) -> s.trim().length )
813813
findAndFollowRel("next") || findAndFollowLink(nextStrings)
814814

815815
showFindModeHUDForQuery = ->

0 commit comments

Comments
 (0)