Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

|| (OR pattern) condenses input #2957

Open
randolf-scholz opened this issue Aug 25, 2024 · 1 comment
Open

|| (OR pattern) condenses input #2957

randolf-scholz opened this issue Aug 25, 2024 · 1 comment
Labels

Comments

@randolf-scholz
Copy link

Debug log ID

4P7WZ5YN-refs-euc/6.7.225-7

What happened?

The following give different results, I would have expected them to give the same result, but for some reason the OR pattern seems to implicitly gobble spaces.

  • Title="The Theory of Classical Valuations"
  • ShortTitle=<empty>
  • (ShortTitle.condense(_) || Title.condense(_))The_Theory_of_Classical_Valuations
  • (ShortTitle || Title).condense(_)TheTheoryofClassicalValuations
  • (ShortTitle ? ShortTitle : Title).condense(_)TheTheoryofClassicalValuations

From the description in the documentation, I would have expected that || only selects which field to use, but not to modify it in any way.

@retorquere
Copy link
Owner

confirmed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants