Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
course-search-enroll-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Scott Berg
course-search-enroll-fe
Commits
18b3020c
Commit
18b3020c
authored
5 years ago
by
Scott Berg
Committed by
Scott Berg
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update regex used for parsing sub requirement symbols.
parent
f9fb3ba6
No related branches found
No related tags found
No related merge requests found
Pipeline
#43369
passed
5 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/dars/pipes/requirement-line.pipe.ts
+1
-1
1 addition, 1 deletion
src/app/dars/pipes/requirement-line.pipe.ts
src/app/dars/pipes/requirement-symbols.pipe.ts
+1
-1
1 addition, 1 deletion
src/app/dars/pipes/requirement-symbols.pipe.ts
with
2 additions
and
2 deletions
src/app/dars/pipes/requirement-line.pipe.ts
+
1
−
1
View file @
18b3020c
...
...
@@ -8,7 +8,7 @@ export class RequirementLinePipe implements PipeTransform {
case
'
okSubrequirementTLine
'
:
case
'
noSubrequirementTLine
'
:
{
const
singleLine
=
lines
.
join
(
'
'
).
trim
();
const
matches
=
singleLine
.
match
(
/^
((
IP
)
|
(
IN-P
)
|
(
PL
)
|
(
R
)
|
(
<>
)
|
\+
|
\-
|
\*)
+/g
);
const
matches
=
singleLine
.
match
(
/^
((
IP
)
|
(
IN-P
)
|
(
PL
)
|
(
R
)
|
(
<>
)
|
\+
|
\-
|
\*)
+
(?![
a-zA-Z
])
/g
);
if
(
matches
&&
matches
.
length
>
0
)
{
lines
=
[
singleLine
.
substr
(
matches
[
0
].
length
)];
...
...
This diff is collapsed.
Click to expand it.
src/app/dars/pipes/requirement-symbols.pipe.ts
+
1
−
1
View file @
18b3020c
...
...
@@ -8,7 +8,7 @@ export class RequirementSymbolsPipe implements PipeTransform {
public
transform
(
lines
:
string
[]):
AuditSymbol
[]
{
const
singleLine
=
lines
.
join
(
'
'
).
trim
();
const
matches
=
singleLine
.
match
(
/^
((
IP
)
|
(
IN-P
)
|
(
PL
)
|
(
R
)
|
(
<>
)
|
\+
|
\-
|
\*)
+/g
);
const
matches
=
singleLine
.
match
(
/^
((
IP
)
|
(
IN-P
)
|
(
PL
)
|
(
R
)
|
(
<>
)
|
\+
|
\-
|
\*)
+
(?![
a-zA-Z
])
/g
);
const
symbols
:
AuditSymbol
[]
=
this
.
symbols
.
getByTaxonomy
(
'
requirement
'
);
if
(
matches
&&
matches
.
length
>
0
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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