Skip to content

[concept-insights] Concept id regex not accepting parentheses #220

@gmjonker

Description

@gmjonker

This:

    conceptInsightsService.getConcept(new Concept(graph, "Reactivity_(psychology)"));

is not accepted by IDHelper.validate(). I think it should, because "Reactivity_(psychology)" is a valid concept name.

Changing

    CONCEPT_ID_REGEX = "^/graphs/[_\\-\\w\\s]*/[_\\-\\w\\s]*/concepts/[_\\-\\w\\s]*$";

to

    CONCEPT_ID_REGEX = "^/graphs/[_\\-\\w\\s]*/[_\\-\\w\\s]*/concepts/[_\\-\\w\\s\\(\\)]*$";

resolves the problem.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions