mozilla-services / lua_sandbox

Generic Lua sandbox for dynamic data analysis
Other
227 stars 71 forks source link

Allow multi line message matcher expressions #238

Closed trink closed 4 years ago

trink commented 5 years ago

Currently the parser does not allow cr/lf as white space.

message_matcher = [[
    Logger == 'telemetry'
    && Type == 'telemetry'
    && (Fields[appBuildId] == NIL
        || (Fields[appBuildId] !~ '_'
            && Fields[appBuildId] !~ 'xml'
            && Fields[appBuildId] !~ '!'))
    && Fields[appVersion] !~ '_'
    && Fields[appVersion] !~ 'xml'
    && (Fields[docType] != 'crash'
        || Fields[appBuildId] != '20190719094503'
        || Fields[appUpdateChannel] != 'nightly'
        || Fields[submission] !~ 'MozCrashReason.*do not use eval with system privileges')
]]
trink commented 4 years ago

closed by 3d15a102ae92a6e7a262431e317da4030b2e6190