File tree Expand file tree Collapse file tree 2 files changed +2
-16
lines changed
uncoder-core/app/translator/platforms/sentinel_one Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change 1- from app .translator .core .mapping import LogSourceSignature , BaseStrictLogSourcesPlatformMappings
1+ from app .translator .core .mapping import BaseStrictLogSourcesPlatformMappings , LogSourceSignature
22from app .translator .platforms .sentinel_one .const import sentinel_one_power_query_details
33
44
Original file line number Diff line number Diff line change 1616limitations under the License.
1717-----------------------------------------------------------------
1818"""
19- from app .translator .core .custom_types .values import ValueType
20- from app .translator .core .str_value_manager import BaseSpecSymbol , StrValue , StrValueManager
21- from app .translator .platforms .sentinel_one .custom_types .values import SentinelOneValueType
19+ from app .translator .core .str_value_manager import StrValueManager
2220from app .translator .platforms .sentinel_one .escape_manager import (
2321 SentinelOnePowerQueryEscapeManager ,
2422 sentinel_one_power_query_escape_manager ,
2826class SentinelOnePowerQueryStrValueManager (StrValueManager ):
2927 escape_manager : SentinelOnePowerQueryEscapeManager = sentinel_one_power_query_escape_manager
3028
31- def from_container_to_str (self , container : StrValue , value_type : str = ValueType .value ) -> str :
32- result = ""
33- for el in container .split_value :
34- if isinstance (el , str ):
35- result += self .escape_manager .escape (el , value_type )
36- elif isinstance (el , BaseSpecSymbol ) and (pattern := self .container_spec_symbols_map .get (type (el ))):
37- if value_type == ValueType .regex_value :
38- pattern = self .escape_manager .escape (pattern , SentinelOneValueType .double_escape_regex_value )
39- result += pattern
40-
41- return result
42-
4329
4430sentinel_one_power_query_str_value_manager = SentinelOnePowerQueryStrValueManager ()
You can’t perform that action at this time.
0 commit comments