Browse Source

Preserve whitespace

tags/v0.2.0
aeris 1 year ago
parent
commit
d51c885fec
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/cross-post/twitter.rb

+ 1
- 1
lib/cross-post/twitter.rb View File

@@ -51,7 +51,7 @@ class CrossPost
51 51
 		def split(text)
52 52
 			parts = []
53 53
 			part  = ''
54
-			words = text.split ' '
54
+			words = text.split /\ /
55 55
 			words.each do |word|
56 56
 				old_part = part
57 57
 				part     += ' ' unless part == ''

Loading…
Cancel
Save