summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-07-10 12:41:59 +0800
committerTim Almdal <tnalmdal@shaw.ca>2009-07-10 12:48:30 +0800
commitf4f6dacf7dd6f96c47db0486ab56c3ab546ba4ac (patch)
tree6f4d977c0ec724907d02707a2ea180dac2964bf0
parente3e56827d5724c6ec5174d4186db99ab2c55e8f7 (diff)
Correct the pattern match to compress multiple spaces into a single
dot. Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
-rw-r--r--modules/g2_import/helpers/g2_import.php2
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