about summary refs log tree commit diff stats
path: root/src/pages/options/options.js
diff options
context:
space:
mode:
authorJason Kim <git@jasonk.me>2021-04-22 23:32:31 -0700
committerJason Kim <git@jasonk.me>2021-04-22 23:32:31 -0700
commit8e11c4885074b2029ec3705415f0191826eaf3ef (patch)
treef34fb3997e1f302d0903819a4d43903f69c6694e /src/pages/options/options.js
parentfix: add comments prefix if no nested path (diff)
downloadlibredirect-8e11c4885074b2029ec3705415f0191826eaf3ef.zip
fix: add comments prefix for /foo/
Links that end in trailing slash but don't have "/comments/" should add
"/comments" prefix but don't because the regex match succeeds.  Fix the
regular expression to be more robust and add prefix for paths like

- /foo/
- /////foo
- /foo/////
- ////foo////

and not add prefix for paths like

- /comments/foo
- /////comments/foo
- /comments/////foo
- ////comments////foo
- ////comments////foo/////
Diffstat (limited to 'src/pages/options/options.js')
0 files changed, 0 insertions, 0 deletions