Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb5243fd

Browse files
author
Oleksandr Volha
committed
fix
1 parent499b18d commitb5243fd

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
returnkeyword,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
fromapp.translator.core.models.platform_detailsimportPlatformDetails
218
fromapp.translator.core.render_ctiimportRenderCTI
319
fromapp.translator.platforms.qualys.constimportQUALYS_QUERY_DETAILS

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp