Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
program-service
Commits
8d2164d1
Commit
8d2164d1
authored
3 years ago
by
snehar-nd
Browse files
Options
Download
Patches
Plain Diff
added brackets to nest conditions
parent
7e8645ac
SB-23374
dependabot/npm_and_yarn/src/ajv-6.12.6
dependabot/npm_and_yarn/src/async-2.6.4
dependabot/npm_and_yarn/src/axios-0.21.2
dependabot/npm_and_yarn/src/decode-uri-component-0.2.2
dependabot/npm_and_yarn/src/jsonwebtoken-9.0.0
dependabot/npm_and_yarn/src/lodash-4.17.21
dependabot/npm_and_yarn/src/moment-2.29.4
dependabot/npm_and_yarn/src/moment-timezone-0.5.37
dependabot/npm_and_yarn/src/node-fetch-2.6.7
dependabot/npm_and_yarn/src/pathval-1.1.1
dependabot/npm_and_yarn/src/qs-and-body-parser-and-express-6.5.3
dependabot/npm_and_yarn/src/redis-3.1.1
dependabot/npm_and_yarn/src/simple-get-2.8.2
dependabot/npm_and_yarn/src/underscore-1.12.1
master
release-4.4.0
release-4.5.0
release-4.6.0
release-4.7.0
release-4.8.0
release-4.9.0
release-5.1.0
test-issue
vk-local-ps-4.4.0
release-5.1.0_RC1
release-4.9.0_RC1
release-4.8.0_RC3
release-4.8.0_RC2
release-4.8.0_RC1
release-4.7.0_RC6
release-4.7.0_RC5
release-4.7.0_RC4
release-4.7.0_RC3
release-4.7.0_RC2
release-4.7.0_RC1
release-4.6.0_RC6
release-4.6.0_RC5
release-4.6.0_RC4
release-4.6.0_RC3
release-4.6.0_RC2
release-4.6.0_RC1
release-4.5.0_RC1
release-4.4.0_RC5
release-4.4.0_RC4
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/service/print/docx.js
+8
-8
src/service/print/docx.js
with
8 additions
and
8 deletions
+8
-8
src/service/print/docx.js
+
8
−
8
View file @
8d2164d1
...
...
@@ -329,8 +329,8 @@ async function renderMCQ(question, questionCounter, marks) {
qoBody
.
search
(
"
img
"
)
>=
0
||
qoBody
.
search
(
"
sup
"
)
>=
0
||
qoBody
.
search
(
"
sub
"
)
>=
0
||
qoBody
.
match
(
/<p>/g
)
&&
qoBody
.
match
(
/<p>/g
).
length
>
1
||
qoBody
.
match
(
/<ol>/g
)
&&
qoBody
.
match
(
/<ol>/g
).
length
>=
1
(
qoBody
.
match
(
/<p>/g
)
&&
qoBody
.
match
(
/<p>/g
).
length
>
1
)
||
(
qoBody
.
match
(
/<ol>/g
)
&&
qoBody
.
match
(
/<ol>/g
).
length
>=
1
)
?
await
getStack
(
qoBody
,
answerOptions
[
index
])
:
[
`
${
answerOptions
[
index
]}
.
${
cleanHTML
(
qoBody
)}
`
];
questionOptions
.
push
(
qoData
);
...
...
@@ -340,8 +340,8 @@ async function renderMCQ(question, questionCounter, marks) {
q
.
search
(
"
img
"
)
>=
0
||
q
.
search
(
"
sub
"
)
>=
0
||
q
.
search
(
"
sup
"
)
>=
0
||
q
.
match
(
/<p>/g
)
&&
q
.
match
(
/<p>/g
).
length
>
1
||
q
.
match
(
/<ol>/g
)
&&
q
.
match
(
/<ol>/g
).
length
>
1
(
q
.
match
(
/<p>/g
)
&&
q
.
match
(
/<p>/g
).
length
>
1
)
||
(
q
.
match
(
/<ol>/g
)
&&
q
.
match
(
/<ol>/g
).
length
>
1
)
?
await
getStack
(
q
,
questionCounter
)
:
[
`
${
questionCounter
}
.
${
cleanHTML
(
q
)}
`
];
...
...
@@ -434,8 +434,8 @@ async function renderQuestion(question, questionCounter, marks, Type) {
question
.
editorState
.
question
.
search
(
"
sup
"
)
>=
0
||
question
.
editorState
.
question
.
search
(
"
ol
"
)
>=
0
||
question
.
editorState
.
question
.
search
(
"
ul
"
)
>=
0
||
question
.
editorState
.
question
.
match
(
/<p>/g
)
&&
question
.
editorState
.
question
.
match
(
/<p>/g
).
length
>
1
||
question
.
editorState
.
question
.
match
(
/<ol>/g
)
&&
question
.
editorState
.
question
.
match
(
/<ol>/g
).
length
>
1
(
question
.
editorState
.
question
.
match
(
/<p>/g
)
&&
question
.
editorState
.
question
.
match
(
/<p>/g
).
length
>
1
)
||
(
question
.
editorState
.
question
.
match
(
/<ol>/g
)
&&
question
.
editorState
.
question
.
match
(
/<ol>/g
).
length
>
1
)
)
{
data
=
await
getStack
(
question
.
editorState
.
question
,
questionCounter
);
}
else
{
...
...
@@ -460,8 +460,8 @@ async function renderComprehension(question, questionCounter, marks, Type) {
question
.
editorState
.
question
.
search
(
"
sup
"
)
>=
0
||
question
.
editorState
.
question
.
search
(
"
ol
"
)
>=
0
||
question
.
editorState
.
question
.
search
(
"
ul
"
)
>=
0
||
question
.
editorState
.
question
.
match
(
/<p>/g
)
&&
question
.
editorState
.
question
.
match
(
/<p>/g
).
length
>
1
||
question
.
editorState
.
question
.
match
(
/<ol>/g
)
&&
question
.
editorState
.
question
.
match
(
/<ol>/g
).
length
>
1
(
question
.
editorState
.
question
.
match
(
/<p>/g
)
&&
question
.
editorState
.
question
.
match
(
/<p>/g
).
length
>
1
)
||
(
question
.
editorState
.
question
.
match
(
/<ol>/g
)
&&
question
.
editorState
.
question
.
match
(
/<ol>/g
).
length
>
1
)
)
{
data
=
await
getStack
(
question
.
editorState
.
question
,
questionCounter
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets