Skip to content
Commit 16292639 authored by David Faure's avatar David Faure
Browse files

Add simplifiedExpression()

This simplifies the expression if possible:
- Mo 08:00-13:00; Tu 08:00-13:00
+ Mo,Tu 08:00-13:00

Doing this inside normalizedExpression() would create many more Osmose
errors than necessary. Better differenciate normalization (which helps
detecting invalid input) and simplification (which is more about setting
the best possible expression if we're modifying it anyway).

This comes from the fact that I got comments on changesets where
I was setting a non-simplified expression. It's all the same to
computers, but humans find the simplified version more readable/logical.
parent b96e0800
Pipeline #54916 passed with stage
in 19 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment