js: decoding of information
-- * src/Helpers.js: This additional escape should 'repair' special characters like spaces in filenames. In the strange world of encoding there is little hope that this captures all cases, or that it will never fail to return some value, let alone meaningful. In my test cases it worked.
This commit is contained in:
parent
3201ded91f
commit
5d6039f6bf
@ -116,7 +116,7 @@ export function isLongId (value){
|
|||||||
export function decode (property){
|
export function decode (property){
|
||||||
if (typeof property === 'string'){
|
if (typeof property === 'string'){
|
||||||
try {
|
try {
|
||||||
return decodeURIComponent(escape(property));
|
return decodeURIComponent(escape(unescape(property)));
|
||||||
}
|
}
|
||||||
catch (error){
|
catch (error){
|
||||||
if (error instanceof URIError) {
|
if (error instanceof URIError) {
|
||||||
|
Loading…
Reference in New Issue
Block a user