lib/raconteur/processor.rb in raconteur-0.2.0 vs lib/raconteur/processor.rb in raconteur-0.2.1
- old
+ new
@@ -93,12 +93,12 @@
end
end
# regex for matching tag and its settings
def regex
- /^\s*#{Regexp.quote(@processor.tag)}:?(?<settings>.*?)?\s*$/im
+ /^\s*#{Regexp.quote(@processor.tag)}(:(?<settings>.*?))?\s*$/im
end
-
+
# execute the processor
def execute(content="", settings={})
output = content
if self.handler
# if the processor has a custom handler, then pass everything to it for processing