Skip to content

FE grammar util

Paul Slaughter requested to merge fe-grammar-util into master

What does this MR do?

In #1979 (moved), there is a requirement to generate a dynamic series fragment (e.g. "A" or "A and B" or "A, B, and C"). This MR creates a utility function for this.

Since this utility function is more about grammar than string manipulation, it didn't quite fit in any of our existing string modules. I opted to create a new grammar_util module instead.

See how it is used in the feature MR.

What are the relevant issue numbers?

  • gitlab-ee#1979

Does this MR meet the acceptance criteria?

Edited by Paul Slaughter

Merge request reports