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

gis-9197 fixes#223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nazargesyk merged 3 commits intomainfromgis-9197_fix
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
from app.translator.core.mapping importLogSourceSignature, BaseStrictLogSourcesPlatformMappings
from app.translator.core.mapping importBaseStrictLogSourcesPlatformMappings, LogSourceSignature
from app.translator.platforms.sentinel_one.const import sentinel_one_power_query_details


Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -16,9 +16,7 @@
limitations under the License.
-----------------------------------------------------------------
"""
from app.translator.core.custom_types.values import ValueType
from app.translator.core.str_value_manager import BaseSpecSymbol, StrValue, StrValueManager
from app.translator.platforms.sentinel_one.custom_types.values import SentinelOneValueType
from app.translator.core.str_value_manager import StrValueManager
from app.translator.platforms.sentinel_one.escape_manager import (
SentinelOnePowerQueryEscapeManager,
sentinel_one_power_query_escape_manager,
Expand All@@ -28,17 +26,5 @@
class SentinelOnePowerQueryStrValueManager(StrValueManager):
escape_manager: SentinelOnePowerQueryEscapeManager = sentinel_one_power_query_escape_manager

def from_container_to_str(self, container: StrValue, value_type: str = ValueType.value) -> str:
result = ""
for el in container.split_value:
if isinstance(el, str):
result += self.escape_manager.escape(el, value_type)
elif isinstance(el, BaseSpecSymbol) and (pattern := self.container_spec_symbols_map.get(type(el))):
if value_type == ValueType.regex_value:
pattern = self.escape_manager.escape(pattern, SentinelOneValueType.double_escape_regex_value)
result += pattern

return result


sentinel_one_power_query_str_value_manager = SentinelOnePowerQueryStrValueManager()
Loading

[8]ページ先頭

©2009-2025 Movatter.jp