Skip to content

Commit

Permalink
improve whitespace matching
Browse files Browse the repository at this point in the history
fix #36
  • Loading branch information
inukshuk committed Aug 26, 2015
1 parent 5991d6d commit 147ca48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/anystyle/parser/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class Parser
:pattern => File.expand_path('../support/anystyle.pat', __FILE__),
:compact => true,
:threads => 4,
:separator => /\s+|\b(\d\S*:)/,
:tagged_separator => /\s+|(<\/?[^>]+>)/,
:separator => /[[:space:]]+|\b(\d[^[:space:]]*:)/,
:tagged_separator => /[[:space:]]+|(<\/?[^>]+>)/,
:strip => /[^[:alnum:]]/,
:format => :normalized,
:xml_entities => Hash[*%w{ &amp; & &lt; < &gt; > &apos; ' &quot; " }],
Expand Down

0 comments on commit 147ca48

Please sign in to comment.