Skip to content

Commit

Permalink
Syntax error: $RGEX_SEARCH > $REGEX_SEARCH
Browse files Browse the repository at this point in the history
  • Loading branch information
e7e6 authored May 2, 2019
1 parent 2b8a336 commit 076ab8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code2pg
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ my %LANGUAGE_COMMENTS_END = (
);

my %REGEX_SEARCH; # how we identify keywords
$RGEX_SEARCH{'plain'}{'before'} = ''; # directly as in sql files
$REGEX_SEARCH{'plain'}{'before'} = ''; # directly as in sql files
$REGEX_SEARCH{'plain'}{'after'} = '';
$REGEX_SEARCH{'tags'}{'before'} = '>(?s:.*?)'; # inside <tag> SQL STRING <tag>
$REGEX_SEARCH{'tags'}{'after'} = '(?s:.*?)<';
Expand Down Expand Up @@ -3473,7 +3473,8 @@ sub main {

# Sed is adding ^M on the files I tried. We remove them.
if ( $modified_file == 1 ) {
my $sed_res = `sed -i 's///g' "$file"`;
my $sed_res = `sed -i 's/
//g' "$file"`;
}
}
print "\rDone ! \n" if (!$quiet_exec);
Expand Down

0 comments on commit 076ab8a

Please sign in to comment.