File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,10 @@ func RelaxedReSyntax(yes bool) CompileOption {
102
102
// improving performance during the evaluation of rule conditions that
103
103
// contains loops.
104
104
func Hoisting (yes bool ) CompileOption {
105
- return func (c * Compiler ) error {
106
- c .hoisting = yes
107
- return nil
108
- }
105
+ return func (c * Compiler ) error {
106
+ c .hoisting = yes
107
+ return nil
108
+ }
109
109
}
110
110
111
111
// ErrorOnSlowPattern is an option for [NewCompiler] and [Compile] that
@@ -268,9 +268,9 @@ func NewCompiler(opts ...CompileOption) (*Compiler, error) {
268
268
flags |= C .YRX_RELAXED_RE_SYNTAX
269
269
}
270
270
271
- if c .hoisting {
272
- flags |= C .YRX_ENABLE_HOISTING
273
- }
271
+ if c .hoisting {
272
+ flags |= C .YRX_ENABLE_HOISTING
273
+ }
274
274
275
275
if c .errorOnSlowPattern {
276
276
flags |= C .YRX_ERROR_ON_SLOW_PATTERN
You can’t perform that action at this time.
0 commit comments