File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -176,14 +176,7 @@ fn gen_words(
176176 let mut v = data. lock ( ) . unwrap ( ) ;
177177 let mut map = map_data. lock ( ) . unwrap ( ) ;
178178
179- if stop && v. len ( ) > num {
180- break ;
181- }
182-
183- if max_t != 0 && v. len ( ) > max_t {
184- break ;
185- }
186-
179+
187180 match val1 {
188181 Some ( i) => {
189182 if i. get_type ( ) == TokenType :: Identifier {
@@ -193,15 +186,27 @@ fn gen_words(
193186 continue ;
194187 } else {
195188 map. insert ( s. to_string ( ) , true ) ;
196-
197189 if !under {
198190 v. push ( s. to_string ( ) ) ;
199- continue ;
191+ if stop && v. len ( ) > num {
192+ break ;
193+ }
194+ if max_t != 0 && v. len ( ) > max_t {
195+ break ;
196+ }
197+ continue ;
200198 }
201199 let f = s. find ( '_' ) ;
202200 if f != None {
203201 let value2 = & s[ ..f. unwrap ( ) ] ;
204202 v. push ( value2. to_string ( ) ) ;
203+ if stop && v. len ( ) > num {
204+ break ;
205+ }
206+ if max_t != 0 && v. len ( ) > max_t {
207+ break ;
208+ }
209+ continue ;
205210 }
206211 }
207212 }
You can’t perform that action at this time.
0 commit comments