diff --git a/docs/Cask/DSL/Version.html b/docs/Cask/DSL/Version.html index 54dbc763b..2b48c1e75 100644 --- a/docs/Cask/DSL/Version.html +++ b/docs/Cask/DSL/Version.html @@ -167,7 +167,7 @@
/(#{DIVIDERS.keys.map { |v| Regexp.quote(v) }.join("|")})/.freeze
/(#{DIVIDERS.keys.map { |v| Regexp.quote(v) }.join("|")})/
/^([^.,:]+)(?:.([^.,:]+)(?:.([^.,:]+))?)?/.freeze
/^([^.,:]+)(?:.([^.,:]+)(?:.([^.,:]+))?)?/
/[^0-9a-zA-Z.,:\-_+ ]/.freeze
/[^0-9a-zA-Z.,:\-_+ ]/
/\.(?>\s|$)/.freeze
/\.(?>\s|$)/
%r{(https?|ftp|file)://}.freeze
%r{(https?|ftp|file)://}
/^(?:[a-f0-9]{40}|gh[po]_\w{36,251})$/.freeze
/^(?:[a-f0-9]{40}|gh[po]_\w{36,251})$/
# File 'utils/github.rb', line 511 def self.pull_request_title_regex(name, version = nil) - return /(^|\s)#{Regexp.quote(name)}(:|,|\s|$)/i.freeze if version.blank? + return /(^|\s)#{Regexp.quote(name)}(:|,|\s|$)/i if version.blank? - /(^|\s)#{Regexp.quote(name)}(:|,|\s)(.*\s)?#{Regexp.quote(version)}(:|,|\s|$)/i.freeze + /(^|\s)#{Regexp.quote(name)}(:|,|\s)(.*\s)?#{Regexp.quote(version)}(:|,|\s|$)/i enddiff --git a/docs/GitHubPackages.html b/docs/GitHubPackages.html index 96a2a9962..13daa82a0 100644 --- a/docs/GitHubPackages.html +++ b/docs/GitHubPackages.html @@ -166,7 +166,7 @@
%r{(?:#{Regexp.escape(URL_PREFIX)}|#{Regexp.escape(DOCKER_PREFIX)})([\w-]+)/([\w-]+)}.freeze
%r{(?:#{Regexp.escape(URL_PREFIX)}|#{Regexp.escape(DOCKER_PREFIX)})([\w-]+)/([\w-]+)}
/^[a-zA-Z0-9_][a-zA-Z0-9._-]{0,127}$/.freeze
/^[a-zA-Z0-9_][a-zA-Z0-9._-]{0,127}$/
/[^a-zA-Z0-9._-]/.freeze
/[^a-zA-Z0-9._-]/
%r{https://github\.com/([\w-]+)/([\w-]+)?/releases/download/(.+)}.freeze
%r{https://github\.com/([\w-]+)/([\w-]+)?/releases/download/(.+)}
/ bottle (?:do.+?end|:[a-z]+)\n\n/m.freeze
/ bottle (?:do.+?end|:[a-z]+)\n\n/m
%r{^https?://.+/[^/]+\.ya?ml(?:\?[^/?]+)?$}i.freeze
%r{^https?://.+/[^/]+\.ya?ml(?:\?[^/?]+)?$}i
%r{^https?://}i.freeze
%r{^https?://}i
/\D*(.+)/.freeze
/\D*(.+)/
/v?(\d+(?:\.\d+)+)/i.freeze
/v?(\d+(?:\.\d+)+)/i
/(?<package_name>.+?)-\d+/i.freeze
/(?<package_name>.+?)-\d+/i
/^#{PACKAGE_NAME_REGEX.source.strip}/i.freeze
/^#{PACKAGE_NAME_REGEX.source.strip}/i
%r{^https?://}i.freeze
%r{^https?://}i
%r{^https?://}i.freeze
%r{^https?://}i
%r{ ^https?://(?:[^/]+?\.)*launchpad\.net /(?<project_name>[^/]+) # The Launchpad project name -}ix.freeze
%r{class="[^"]*version[^"]*"[^>]*>\s*Latest version is (.+)\s*</}.freeze
%r{class="[^"]*version[^"]*"[^>]*>\s*Latest version is (.+)\s*</}
%r{ ^https?://registry\.npmjs\.org /(?<package_name>.+?)/-/ # The npm package name -}ix.freeze
%r{^https?://}i.freeze
%r{^https?://}i
%r{^https?://}i.freeze
%r{^https?://}i
%r{^https?://}i.freeze
%r{^https?://}i
/(?<module_name>.+)-\d+/i.freeze
/(?<module_name>.+)-\d+/i
/^#{MODULE_REGEX.source.strip}/i.freeze
/^#{MODULE_REGEX.source.strip}/i
%r{^https?://}i.freeze
%r{^https?://}i
%r{^([a-z]+)://(.+):([0-9]+)$}i.freeze
%r{^([a-z]+)://(.+):([0-9]+)$}i
/^@(loader_|executable_|r)path/.freeze
/^@(loader_|executable_|r)path/
%r{(?:^|/)(([^/]+)\.framework/(?:Versions/[^/]+/)?\2)$}.freeze
%r{(?:^|/)(([^/]+)\.framework/(?:Versions/[^/]+/)?\2)$}
%r{(locale|man)/([a-z]{2}|C|POSIX)(_[A-Z]{2})?(\.[a-zA-Z\-0-9]+(@.+)?)?}.freeze
%r{(locale|man)/([a-z]{2}|C|POSIX)(_[A-Z]{2})?(\.[a-zA-Z\-0-9]+(@.+)?)?}
%r{info/([^.].*?\.info|dir)$}.freeze
%r{info/([^.].*?\.info|dir)$}
%r{#{HOMEBREW_PREFIX}/opt/openjdk(@\d+(\.\d+)*)?/libexec(/openjdk\.jdk/Contents/Home)?}.freeze
%r{#{HOMEBREW_PREFIX}/opt/openjdk(@\d+(\.\d+)*)?/libexec(/openjdk\.jdk/Contents/Home)?}
/(?:(?<=-F|-I|-L|-isystem)|(?<![a-zA-Z0-9]))/.freeze
/(?:(?<=-F|-I|-L|-isystem)|(?<![a-zA-Z0-9]))/
%r{^#! ?/usr/bin/(?:env )?node( |$)}.freeze
%r{^#! ?/usr/bin/(?:env )?node( |$)}
%r{^#! ?/usr/bin/(?:env )?perl( |$)}.freeze
%r{^#! ?/usr/bin/(?:env )?perl( |$)}
%r{^#! ?/usr/bin/(?:env )?python(?:[23](?:\.\d{1,2})?)?( |$)}.freeze
%r{^#! ?/usr/bin/(?:env )?python(?:[23](?:\.\d{1,2})?)?( |$)}
/MacOSX(10\.\d+|\d+)\.sdk$/.freeze
/MacOSX(10\.\d+|\d+)\.sdk$/
/\\?\.t(ar|(g|l|x)z$|[bz2]{2,4}$)(\\?\.((g|l|x)z)|[bz2]{2,4}|Z)?$/i.freeze
/\\?\.t(ar|(g|l|x)z$|[bz2]{2,4}$)(\\?\.((g|l|x)z)|[bz2]{2,4}|Z)?$/i
/\A[[:space:]]*\z/.freeze
/\A[[:space:]]*\z/
%r{([^A-Za-z0-9_\-.,:/@~\n])}.freeze
%r{([^A-Za-z0-9_\-.,:/@~\n])}
/alpha[0-9]*|a[0-9]+/i.freeze
/alpha[0-9]*|a[0-9]+/i
/beta[0-9]*|b[0-9]+/i.freeze
/beta[0-9]*|b[0-9]+/i
/[0-9]+/i.freeze
/[0-9]+/i
/p[0-9]*/i.freeze
/p[0-9]*/i
/.post[0-9]+/i.freeze
/.post[0-9]+/i
/pre[0-9]*/i.freeze
/pre[0-9]*/i
/rc[0-9]*/i.freeze
/rc[0-9]*/i
%r{(?:sourceforge\.net|sf\.net)/.*/download$}.freeze
%r{(?:sourceforge\.net|sf\.net)/.*/download$}
/\.[^a-zA-Z]+$/.freeze
/\.[^a-zA-Z]+$/
/[a-z]+/i.freeze
/[a-z]+/i
%r{https://api\.github\.com/repos/([\w-]+)/([\w-]+)?/pulls/(\d+)}.freeze
%r{https://api\.github\.com/repos/([\w-]+)/([\w-]+)?/pulls/(\d+)}
%r[https://github\.com/([\w-]+)/([\w-]+)?/(?:pull/(\d+)|commit/[0-9a-fA-F]{4,40})].freeze
%r[https://github\.com/([\w-]+)/([\w-]+)?/(?:pull/(\d+)|commit/[0-9a-fA-F]{4,40})]
/\.([a-z0-9_]+)\.bottle\.(?:(\d+)\.)?tar\.gz$/.freeze
/\.([a-z0-9_]+)\.bottle\.(?:(\d+)\.)?tar\.gz$/
T.let(%r{^([\w-]+)/([\w-]+)/([\w+-.@]+)$}.freeze, Regexp)
T.let(%r{^([\w-]+)/([\w-]+)/([\w+-.@]+)$}, Regexp)
T.let(%r{^([\w-]+)/([\w-]+)/([a-z0-9\-_]+)$}.freeze, Regexp)
T.let(%r{^([\w-]+)/([\w-]+)/([a-z0-9\-_]+)$}, Regexp)
T.let(%r{^([Hh]omebrew/(?:homebrew-)?cask/)?[a-z0-9\-_]+$}.freeze, Regexp)
T.let(%r{^([Hh]omebrew/(?:homebrew-)?cask/)?[a-z0-9\-_]+$}, Regexp)
T.let( - %r{#{Regexp.escape(HOMEBREW_LIBRARY.to_s)}/Taps/(?<user>[\w-]+)/(?<repo>[\w-]+)}.freeze, Regexp + %r{#{Regexp.escape(HOMEBREW_LIBRARY.to_s)}/Taps/(?<user>[\w-]+)/(?<repo>[\w-]+)}, Regexp )
T.let(%r{^(?:([Cc]askroom)/(cask|versions)|([Hh]omebrew)/(?:homebrew-)?(cask|cask-[\w-]+))/([\w+-.]+)$}.freeze, +
T.let(%r{^(?:([Cc]askroom)/(cask|versions)|([Hh]omebrew)/(?:homebrew-)?(cask|cask-[\w-]+))/([\w+-.]+)$}, Regexp)
T.let(/^(home|linux)brew-/.freeze, Regexp)
T.let(/^(home|linux)brew-/, Regexp)