diff options
author | Jason Kim <git@jasonk.me> | 2021-04-22 23:32:31 -0700 |
---|---|---|
committer | Jason Kim <git@jasonk.me> | 2021-04-22 23:32:31 -0700 |
commit | 8e11c4885074b2029ec3705415f0191826eaf3ef (patch) | |
tree | f34fb3997e1f302d0903819a4d43903f69c6694e /src/assets | |
parent | fix: add comments prefix if no nested path (diff) | |
download | libredirect-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/assets')
0 files changed, 0 insertions, 0 deletions