Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Stefane Fermigier
jio
Commits
8c054c6c
Commit
8c054c6c
authored
Feb 24, 2021
by
Stefane Fermigier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unneeded escapes.
parent
182453fb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
src/jio.date/jiodate.js
src/jio.date/jiodate.js
+4
-4
src/jio.storage/xwikistorage.js
src/jio.storage/xwikistorage.js
+2
-2
src/node/jio.js
src/node/jio.js
+1
-1
src/queries/query.js
src/queries/query.js
+1
-1
No files found.
src/jio.date/jiodate.js
View file @
8c054c6c
...
...
@@ -86,17 +86,17 @@
// XXX these regexps fail to detect many invalid dates.
if
(
str
.
match
(
/
\d{4}
-
[
01
]\d
-
[
0-3
]\d
T
[
0-2
]\d
:
[
0-5
]\d
:
[
0-5
]\d\.\d
+
([
+
\
-][
0-2
]\d
:
[
0-5
]\d
|Z
)
/
)
if
(
str
.
match
(
/
\d{4}
-
[
01
]\d
-
[
0-3
]\d
T
[
0-2
]\d
:
[
0-5
]\d
:
[
0-5
]\d\.\d
+
([
+-
][
0-2
]\d
:
[
0-5
]\d
|Z
)
/
)
||
str
.
match
(
/
\d\d\d\d
-
\d\d
-
\d\d
\d\d
:
\d\d
:
\d\d\.\d\d\d
/
))
{
// ISO, milliseconds
this
.
mom
=
moment
(
str
);
this
.
setPrecision
(
MSEC
);
}
else
if
(
str
.
match
(
/
\d{4}
-
[
01
]\d
-
[
0-3
]\d
T
[
0-2
]\d
:
[
0-5
]\d
:
[
0-5
]\d([
+
\
-][
0-2
]\d
:
[
0-5
]\d
|Z
)
/
)
}
else
if
(
str
.
match
(
/
\d{4}
-
[
01
]\d
-
[
0-3
]\d
T
[
0-2
]\d
:
[
0-5
]\d
:
[
0-5
]\d([
+-
][
0-2
]\d
:
[
0-5
]\d
|Z
)
/
)
||
str
.
match
(
/
\d\d\d\d
-
\d\d
-
\d\d
\d\d
:
\d\d
:
\d\d
/
))
{
// ISO, seconds
this
.
mom
=
moment
(
str
);
this
.
setPrecision
(
SEC
);
}
else
if
(
str
.
match
(
/
\d{4}
-
[
01
]\d
-
[
0-3
]\d
T
[
0-2
]\d
:
[
0-5
]\d([
+
\
-][
0-2
]\d
:
[
0-5
]\d
|Z
)
/
)
}
else
if
(
str
.
match
(
/
\d{4}
-
[
01
]\d
-
[
0-3
]\d
T
[
0-2
]\d
:
[
0-5
]\d([
+-
][
0-2
]\d
:
[
0-5
]\d
|Z
)
/
)
||
str
.
match
(
/
\d\d\d\d
-
\d\d
-
\d\d
\d\d
:
\d\d
/
))
{
// ISO, minutes
this
.
mom
=
moment
(
str
);
...
...
@@ -184,7 +184,7 @@
// _export('JIODate', JIODate);
//
//
// _export('YEAR', YEAR);
// _export('MONTH', MONTH);
// _export('DAY', DAY);
...
...
src/jio.storage/xwikistorage.js
View file @
8c054c6c
...
...
@@ -1075,10 +1075,10 @@
// browsing every entry
// is part of the user space
if
(
/^
[^
\/]
+
\/[^\
/]
+$/
.
test
(
i
))
{
if
(
/^
[^
/]
+
\/[^
/]
+$/
.
test
(
i
))
{
// this is an attachment
attachmentFound
(
param
,
i
);
}
else
if
(
/^
[^
\
/]
+$/
.
test
(
i
))
{
}
else
if
(
/^
[^/]
+$/
.
test
(
i
))
{
// this is a document
param
.
_id
=
i
;
result
=
repairOne
(
param
,
repair
);
...
...
src/node/jio.js
View file @
8c054c6c
...
...
@@ -93,7 +93,7 @@
// allow tests to check them
param
.
headers
=
Object
.
assign
({},
param
.
headers
);
}
param
.
headers
[
"
Content-Type
"
]
=
"
multipart
\
/form-data; boundary=
"
+
param
.
headers
[
"
Content-Type
"
]
=
"
multipart/form-data; boundary=
"
+
param
.
data
.
boundary
;
param
.
data
.
body
+=
'
--
'
+
param
.
data
.
boundary
+
'
--
\r\n
'
;
param
.
data
=
param
.
data
.
body
;
...
...
src/queries/query.js
View file @
8c054c6c
...
...
@@ -23,7 +23,7 @@
"
use strict
"
;
var
query_class_dict
=
{},
regexp_escape
=
/
[
\-\[\]
{}()*+?.,
\
\\^
$|#
\s]
/g
,
regexp_escape
=
/
[
-[
\]
{}()*+?.,
\\
^$|#
\s]
/g
,
regexp_percent
=
/%/g
,
regexp_underscore
=
/_/g
,
regexp_operator
=
/^
(?:
AND|OR|NOT
)
$/i
,
...
...
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