Closed (fixed)
Project:
Pathauto
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
21 Oct 2007 at 17:30 UTC
Updated:
30 Nov 2007 at 18:13 UTC
Jump to comment: Most recent file
After http://drupal.org/node/185304 some people may still want that reduction of letters to the subset "ascii96" characters represented by something similar to this preg_replace pattern:
// Preserve alphanumerics and forward slashes, everything else becomes a separator.
$pattern = '/[^a-zA-Z0-9\/]+/ ';
$output = preg_replace($pattern, $separator, $output);
It would need to be expanded to accept all punctuation since we now have the punctuation control.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | ascii96_reduction.patch | 2.28 KB | greggles |
Comments
Comment #1
gregglesOk - here is the patch.
I decided against trying to handle punctuation for now.
If someone wants that they can figure out the regex (yikes).
Comment #2
gregglesapplied to both 5.x and MAIN.
Comment #3
hass commentedReducing to ASCII128 or ASCII96? The wording is different for the form element and the code comment...
Comment #4
gregglesThanks for catching that. I took the opportunity to clean up some other comments as well.
Comment #5
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.