Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aurel
jio
Commits
d459dd0d
Commit
d459dd0d
authored
Aug 23, 2017
by
Vincent Bechu
Committed by
Vincent Bechu
Aug 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[documentstorage] allow all utf-8 character
parent
ddf61098
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
src/jio.storage/documentstorage.js
src/jio.storage/documentstorage.js
+10
-5
No files found.
src/jio.storage/documentstorage.js
View file @
d459dd0d
/*jslint nomen: true*/
/*global Blob,
atob, btoa, RSVP
*/
(
function
(
jIO
,
Blob
,
atob
,
btoa
,
RSVP
)
{
/*global Blob,
RSVP, unescape, escape
*/
(
function
(
jIO
,
Blob
,
RSVP
,
unescape
,
escape
)
{
"
use strict
"
;
/**
* The jIO DocumentStorage extension
*
...
...
@@ -18,7 +17,13 @@
var
DOCUMENT_EXTENSION
=
"
.json
"
,
DOCUMENT_REGEXP
=
new
RegExp
(
"
^jio_document/([
\\
w=]+)
"
+
DOCUMENT_EXTENSION
+
"
$
"
),
ATTACHMENT_REGEXP
=
new
RegExp
(
"
^jio_attachment/([
\\
w=]+)/([
\\
w=]+)$
"
);
ATTACHMENT_REGEXP
=
new
RegExp
(
"
^jio_attachment/([
\\
w=]+)/([
\\
w=]+)$
"
),
btoa
=
function
(
str
)
{
return
window
.
btoa
(
unescape
(
encodeURIComponent
(
str
)));
},
atob
=
function
(
str
)
{
return
decodeURIComponent
(
escape
(
window
.
atob
(
str
)));
};
function
getSubAttachmentIdFromParam
(
id
,
name
)
{
if
(
name
===
undefined
)
{
...
...
@@ -225,4 +230,4 @@
jIO
.
addStorage
(
'
document
'
,
DocumentStorage
);
}(
jIO
,
Blob
,
atob
,
btoa
,
RSVP
));
}(
jIO
,
Blob
,
RSVP
,
unescape
,
escape
));
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment