You are here

function jw_player_library_url_regex in JW Player 8

Same name and namespace in other branches
  1. 7.2 jw_player.module \jw_player_library_url_regex()

Return regex to check JW Player library URL format.

Return value

string The regex string as defined in the function.

1 call to jw_player_library_url_regex()
JwplayerPresetAdd::validateForm in src/Form/JwplayerPresetAdd.php
Form validation handler.

File

./jw_player.module, line 308
Adds a theme function which allows theme developers to use the JW Player.

Code

function jw_player_library_url_regex() {
  return '/^(https?:|)?\\/\\/content\\.jwplatform\\.com\\/libraries\\/([a-zA-Z0-9]*)\\.js$/i';
}