Loading
Issue #3641597: Ignore words are removed from inside hyphenated words
Generated with the help of an LLM.
Adds an opt-in setting, "Only remove strings that stand alone between spaces" (ignore_words_whitespace_only), off by default.
With the setting off, nothing changes. Ignore words match on \b boundaries after reduce_ascii, so existing sites keep generating the aliases they generate today.
With the setting on, only whitespace separates words, so a hyphenated term such as state-of-the-art or 26-35-A keeps every part. Removal then runs before reduce_ascii, which would otherwise replace that whitespace with the separator.
pathauto_update_8109() adds the key to existing config as FALSE. testCleanString and PathautoSettingsFormWebTest cover both states.
Closes #3641597
Edited by Scot Self