mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 12:34:47 -04:00
Improves entry url encoding.
This commit is contained in:
parent
9ac5973907
commit
87b3c6bfee
1 changed files with 1 additions and 0 deletions
|
@ -8,6 +8,7 @@ modulejs.define('model/entry', ['_', 'core/types', 'core/ajax', 'core/event'], f
|
|||
|
||||
return href
|
||||
.replace(/\/+/g, '/')
|
||||
.replace(/ /g, '%20')
|
||||
.replace(/'/g, '%27')
|
||||
.replace(/\[/g, '%5B')
|
||||
.replace(/\]/g, '%5D')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue