Skip to content

Commit

Permalink
Fixed a bug which caused RoundhousE to hang on regex parsing. Thanks …
Browse files Browse the repository at this point in the history
…to Stackoverflow user "Tim Pietzcker" for helping me with the regex

http://stackoverflow.com/questions/13562435/infinite-loop-with-regex
  • Loading branch information
AndersMalmgren authored and ferventcoder committed Feb 18, 2013
1 parent 1e9e782 commit c02d130
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class SqlServerDatabase : AdoNetDatabase

public override string sql_statement_separator_regex_pattern
{
get { return @"(?<KEEP1>^(?:[\s\t])*(?:-{2}).*$)|(?<KEEP1>/{1}\*{1}[\S\s]*?\*{1}/{1})|(?<KEEP1>'{1}(?:[^']|\n[^'])*?'{1})|(?<KEEP1>\s)(?<BATCHSPLITTER>GO)(?<KEEP2>\s)|(?<KEEP1>\s)(?<BATCHSPLITTER>GO)(?<KEEP2>$)"; }
get { return @"(?<KEEP1>^\s*--.*$)|(?<KEEP1>/\*[\S\s]*?\*/)|(?<KEEP1>'[^']*')|(?<KEEP1>\s)(?<BATCHSPLITTER>GO)(?<KEEP2>\s|$)"; }
}

public override void initialize_connections(ConfigurationPropertyHolder configuration_property_holder)
Expand Down

0 comments on commit c02d130

Please sign in to comment.