forked from Lainports/freebsd-ports
Unescaped left brace in regex is illegal in regex when not used as a
quantifier.
- /foo{3}/ will match foofoofoo.
- /\\new{bar}/ is illegal and should be written as /\\new\{bar}/.
PR: 226817
Sponsored by: Absolight
11 lines
410 B
Raku
11 lines
410 B
Raku
--- ldap/build/replace.pm.orig 2011-01-06 12:05:39 UTC
|
|
+++ ldap/build/replace.pm
|
|
@@ -62,7 +62,7 @@ sub GenerateHeader ($$\%) {
|
|
while(<TEMPLATE>) {
|
|
my $line = $_;
|
|
while(($orig, $replace) = each %$keywords) {
|
|
- $line =~ s/{{$orig}}/$replace/g;
|
|
+ $line =~ s/\{\{$orig}}/$replace/g;
|
|
}
|
|
|
|
# the first line is a comment specific to the template file, which we
|