module Playwright::LocatorUtils
def escape_for_text_selector(text, exact)
-
text
(Regexp|String
) --
def escape_for_text_selector(text, exact) t.is_a?(Regexp) x = JavaScript::Regex.new(text) rn "/#{regex.source}/#{regex.flag}" ct ext.to_json}s" ext.to_json}i"