Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
f6566174
Commit
f6566174
authored
Apr 30, 2018
by
Rob Stupay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
not working yet
parent
d5201d7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
multiParamManager.js
src/multiParamManager.js
+4
-1
No files found.
src/multiParamManager.js
View file @
f6566174
...
@@ -108,9 +108,12 @@ class MultiParamManager {
...
@@ -108,9 +108,12 @@ class MultiParamManager {
for
(
var
k
=
0
;
k
<
valArray
.
length
;
k
++
)
{
for
(
var
k
=
0
;
k
<
valArray
.
length
;
k
++
)
{
var
el
=
valArray
[
k
]
var
el
=
valArray
[
k
]
if
(
ret
!==
''
)
ret
+=
','
if
(
ret
!==
''
)
ret
+=
','
el
.
value
=
el
.
value
.
replace
(
/
(
^|,
\s
+|,
)([
a-zA-Z
]
+
)(\s
+,|,|$
)
/g
,
'$1"$2"$3'
)
// replace non quoted string - that starts with a letter
// start with the beginning of a line or with a comma or with a space and a comma
// then match on a a-zA-Z or a [] or a {} but not a ""
// el.value = el.value.replace(/(^|,\s+|,)(^[a-zA-Z^a-zA-Z]+)(\s+,|,|$)/g, '$1"$2"$3') // replace non quoted string - that starts with a letter
ret
+=
el
.
value
ret
+=
el
.
value
}
}
console
.
log
(
'ret is '
+
ret
)
this
.
clickCallBack
(
this
.
funABI
.
inputs
,
ret
)
this
.
clickCallBack
(
this
.
funABI
.
inputs
,
ret
)
this
.
emptyInputs
()
this
.
emptyInputs
()
}
}
...
...
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