diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-09 21:41:59 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-09 21:41:59 -0700 |
commit | 67d78e8d58fa5060e42fcef73d3c6de19209c216 (patch) | |
tree | e76b7bf91228680c5076d4f63c2e6880f4b29e98 | |
parent | 17ab2c35d76f6179f4bebd1c5a0fd549d260d031 (diff) |
Correct the pattern match to compress multiple spaces into a single
dot.
-rw-r--r-- | modules/g2_import/helpers/g2_import.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php index 66787467..7dd799c8 100644 --- a/modules/g2_import/helpers/g2_import.php +++ b/modules/g2_import/helpers/g2_import.php @@ -626,7 +626,7 @@ class g2_import_Core { // Multiword tags have the space changed to dots.s foreach ($tag_names as $tag_name) { $tags .= (strlen($tags) ? ", " : "") . - tag::add($g3_item, preg_replace('/\s\s+/', '.', $tag_name)); + tag::add($g3_item, preg_replace('/\s+/', '.', $tag_name)); } // Tag operations are idempotent so we don't need to map them. Which is good because we don't |