Skip to content

Commit

Permalink
better regexps for parsing DIV frames
Browse files Browse the repository at this point in the history
git-svn-id: svn://rubyforge.org/var/svn/maruku/trunk@193 7e2f57f0-5a75-4fd6-9797-5817c466b243
  • Loading branch information
Andrea Censi committed Dec 13, 2008
1 parent 22ea7d4 commit 939ce35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Code and patches from:
* Paul Dlug
* [Ari Stern](http://www.acm.caltech.edu/~astern)
* Damir Zekic (z3c)
* Alexandr Mankuta (cheba)

Bug reporting, feature requests and praise:

Expand Down
4 changes: 2 additions & 2 deletions lib/maruku/ext/div.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#| +--------------------------------------------------
#+---------------------------------------------------

OpenDiv = /^[ ]{0,3}\+\-\-+\s*([^\s-]*)\s*\-*\s*$/
CloseDiv = /^[ ]{0,3}\=\-\-+\s*([^\s-]*)\s*\-*\s*$/
OpenDiv = /^[ ]{0,3}\+\-\-+\s*(\{([^{}]*|".*"|'.*')*\})?\s*\-*\s*$/
CloseDiv = /^[ ]{0,3}\=\-\-+\s*(\{([^{}]*|".*"|'.*')*\})?\s*\-*\s*$/
# note these are not enough for parsing the above example:
#OpenDiv = /^[ ]{0,3}\+\-\-+\s*(.*)$/
#CloseDiv = /^[ ]{0,3}\=\-\-+\s*(.*)$/
Expand Down

0 comments on commit 939ce35

Please sign in to comment.