Skip to content

Commit b5243fd

Browse files
author
Oleksandr Volha
committed
fix
1 parent 499b18d commit b5243fd

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

translator/app/translator/platforms/base/lucene/tokenizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def search_keyword(self, query: str) -> tuple[Keyword, str]:
120120
_, value = self.get_operator_and_value(keyword_search)
121121
value = value.strip(self.wildcard_symbol)
122122
keyword = Keyword(value=value)
123-
pos = keyword_search.end() - 1 # FIXME: do not count the last group of pattern e.g. )
123+
pos = keyword_search.end() - 1
124124
return keyword, query[pos:]
125125

126126
def _match_field_value(self, query: str, white_space_pattern: str = r"\s*") -> bool:

translator/app/translator/platforms/qualys/renders/qualys_cti.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
"""
2+
Uncoder IO Community Edition License
3+
-----------------------------------------------------------------
4+
Copyright (c) 2023 SOC Prime, Inc.
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.
14+
-----------------------------------------------------------------
15+
"""
16+
117
from app.translator.core.models.platform_details import PlatformDetails
218
from app.translator.core.render_cti import RenderCTI
319
from app.translator.platforms.qualys.const import QUALYS_QUERY_DETAILS

0 commit comments

Comments
 (0)