lib/bbcoder/base.rb in bbcoder-0.1.6 vs lib/bbcoder/base.rb in bbcoder-0.2.0
- old
+ new
@@ -8,10 +8,10 @@
def self.configuration
@configuration ||= BBCoder::Configuration.new
end
def initialize(text)
- @raw = text.split(/(\[[^\]]+\])/i).select {|string| string.size > 0}
+ @raw = text.split(/(\[[^\[\]]+\])/i).select {|string| string.size > 0}
end
def to_html
@html ||= parse
end