lib/playwright/javascript/regex.rb
module Playwright module JavaScript class Regex def initialize(regexp) unless regexp.is_a?(Regexp) raise ArgumentError("Argument must be a Regexp: #{regexp} (#{regexp.class})") end @source = regexp.source @flag = flag_for(regexp) end attr_reader :source, :flag private def flag_for(regexp) flags = [] flags << 'ms' if (regexp.options & Regexp::MULTILINE) != 0 flags << 'i' if (regexp.options & Regexp::IGNORECASE) != 0 flags.join('') end end end end
Source Files
- lib/playwright.rb
- lib/playwright/android_input_impl.rb
- lib/playwright/api_implementation.rb
- lib/playwright/api_request_impl.rb
- lib/playwright/api_response_impl.rb
- lib/playwright/channel.rb
- lib/playwright/channel_owner.rb
- lib/playwright/channel_owners/android.rb
- lib/playwright/channel_owners/android_device.rb
- lib/playwright/channel_owners/api_request_context.rb
- lib/playwright/channel_owners/artifact.rb
- lib/playwright/channel_owners/binding_call.rb
- lib/playwright/channel_owners/browser.rb
- lib/playwright/channel_owners/browser_context.rb
- lib/playwright/channel_owners/browser_type.rb
- lib/playwright/channel_owners/cdp_session.rb
- lib/playwright/channel_owners/debugger.rb
- lib/playwright/channel_owners/dialog.rb
- lib/playwright/channel_owners/disposable.rb
- lib/playwright/channel_owners/electron.rb
- lib/playwright/channel_owners/element_handle.rb
- lib/playwright/channel_owners/fetch_request.rb
- lib/playwright/channel_owners/frame.rb
- lib/playwright/channel_owners/js_handle.rb
- lib/playwright/channel_owners/json_pipe.rb
- lib/playwright/channel_owners/local_utils.rb
- lib/playwright/channel_owners/overlay.rb
- lib/playwright/channel_owners/page.rb
- lib/playwright/channel_owners/playwright.rb
- lib/playwright/channel_owners/request.rb
- lib/playwright/channel_owners/response.rb
- lib/playwright/channel_owners/route.rb
- lib/playwright/channel_owners/stream.rb
- lib/playwright/channel_owners/tracing.rb
- lib/playwright/channel_owners/web_socket.rb
- lib/playwright/channel_owners/worker.rb
- lib/playwright/channel_owners/writable_stream.rb
- lib/playwright/clock_impl.rb
- lib/playwright/connection.rb
- lib/playwright/console_message_impl.rb
- lib/playwright/disposable.rb
- lib/playwright/download_impl.rb
- lib/playwright/errors.rb
- lib/playwright/event_emitter.rb
- lib/playwright/event_emitter_proxy.rb
- lib/playwright/events.rb
- lib/playwright/file_chooser_impl.rb
- lib/playwright/frame_locator_impl.rb
- lib/playwright/har_router.rb
- lib/playwright/http_headers.rb
- lib/playwright/input_files.rb
- lib/playwright/javascript.rb
- lib/playwright/javascript/expression.rb
- lib/playwright/javascript/regex.rb
- lib/playwright/javascript/source_url.rb
- lib/playwright/javascript/value_parser.rb
- lib/playwright/javascript/value_serializer.rb
- lib/playwright/javascript/visitor_info.rb
- lib/playwright/json_pipe_transport.rb
- lib/playwright/keyboard_impl.rb
- lib/playwright/locator_assertions_impl.rb
- lib/playwright/locator_impl.rb
- lib/playwright/locator_utils.rb
- lib/playwright/mouse_impl.rb
- lib/playwright/page_assertions_impl.rb
- lib/playwright/playwright_api.rb
- lib/playwright/raw_headers.rb
- lib/playwright/route_handler.rb
- lib/playwright/screencast.rb
- lib/playwright/select_option_values.rb
- lib/playwright/selectors_impl.rb
- lib/playwright/test.rb
- lib/playwright/timeout_settings.rb
- lib/playwright/touchscreen_impl.rb
- lib/playwright/transport.rb
- lib/playwright/url_matcher.rb
- lib/playwright/utils.rb
- lib/playwright/version.rb
- lib/playwright/video.rb
- lib/playwright/waiter.rb
- lib/playwright/web_socket_client.rb
- lib/playwright/web_socket_transport.rb
- lib/playwright_api/api_request.rb
- lib/playwright_api/api_request_context.rb
- lib/playwright_api/api_response.rb
- lib/playwright_api/browser.rb
- lib/playwright_api/browser_context.rb
- lib/playwright_api/browser_type.rb
- lib/playwright_api/cdp_session.rb
- lib/playwright_api/clock.rb
- lib/playwright_api/console_message.rb
- lib/playwright_api/dialog.rb
- lib/playwright_api/download.rb
- lib/playwright_api/element_handle.rb
- lib/playwright_api/file_chooser.rb
- lib/playwright_api/frame.rb
- lib/playwright_api/frame_locator.rb
- lib/playwright_api/js_handle.rb
- lib/playwright_api/keyboard.rb
- lib/playwright_api/locator.rb
- lib/playwright_api/locator_assertions.rb
- lib/playwright_api/mouse.rb
- lib/playwright_api/page.rb
- lib/playwright_api/page_assertions.rb
- lib/playwright_api/playwright.rb
- lib/playwright_api/request.rb
- lib/playwright_api/response.rb
- lib/playwright_api/route.rb
- lib/playwright_api/selectors.rb
- lib/playwright_api/touchscreen.rb
- lib/playwright_api/tracing.rb
- lib/playwright_api/web_socket.rb
- lib/playwright_api/worker.rb