class Zoom::SecurityProfile::UnsafeJs
Public Class Methods
new(n = nil, t = nil, f = nil, b = nil, a = nil)
click to toggle source
Calls superclass method
Zoom::SecurityProfile::new
# File lib/zoom/profile/unsafe_js.rb, line 2 def initialize(n = nil, t = nil, f = nil, b = nil, a = nil) t = Zoom::ProfileManager.default_tool super(n, t, f, b, a) @exts = ["js", "jsx", "vue"] @regex = [ "\\.?", "(", [ "(append|eval|html)\\(", "innerHTML\\s*=" ].join("|"), ")", "\\s*($|([\"'][^\"']+[\"']\\s*\\+\\s*)?[^\"'; )]+)" ].join end