|
4 | 4 |
|
5 | 5 | # General rules: |
6 | 6 | # - All the static parts of the expected URL are checked literally. |
7 | | -# - Don't forget to escape dot (`.`) and other special characters when used literally. |
8 | 7 | # - Each path component must begin with [\w], or a more restrictive character set. |
9 | 8 | # - Percent (`%`) shall not be allowed to avoid any percent encoding. |
10 | 9 | WINDOWS_VERSIONS_URLS_REGEXPS = [ |
11 | | - %r{\Ahttps://github\.com/oneclick/rubyinstaller2?/releases/download/\w[\w.-]*/\w[\w.-]*\z}, |
12 | | - %r{\Ahttps://github\.com/MSP-Greg/ruby-loco/releases/download/\w[\w.-]*/\w[\w.-]*\z} |
| 10 | + %r{\A#{Regexp.escape 'https://github.com/oneclick/rubyinstaller/releases/download'}/\w[\w.-]*/\w[\w.-]*\z}, |
| 11 | + %r{\A#{Regexp.escape 'https://github.com/oneclick/rubyinstaller2/releases/download'}/\w[\w.-]*/\w[\w.-]*\z}, |
| 12 | + %r{\A#{Regexp.escape 'https://github.com/MSP-Greg/ruby-loco/releases/download'}/\w[\w.-]*/\w[\w.-]*\z} |
13 | 13 | ].freeze |
14 | 14 |
|
15 | 15 | WINDOWS_TOOLCHAIN_VERSIONS_URLS_REGEXPS = [ |
16 | | - %r{\Ahttps://github\.com/oneclick/rubyinstaller/releases/download/devkit-4\.7\.2/DevKit-mingw64-64-4\.7\.2-20130224-1432-sfx\.exe\z}, |
17 | | - %r{\Ahttps://github\.com/ruby/setup-msys2-gcc/releases/download/\w[\w.-]*/\w[\w@.-]*\z}, |
18 | | - %r{\Ahttps://github\.com/ruby/setup-msys2-gcc/releases/latest/download/\w[\w@.-]*\z} |
| 16 | + %r{\A#{Regexp.escape 'https://github.com/oneclick/rubyinstaller/releases/download/devkit-4.7.2/DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe'}\z}, |
| 17 | + %r{\A#{Regexp.escape 'https://github.com/ruby/setup-msys2-gcc/releases/download'}/\w[\w.-]*/\w[\w@.-]*\z}, |
| 18 | + %r{\A#{Regexp.escape 'https://github.com/ruby/setup-msys2-gcc/releases/latest/download'}/\w[\w@.-]*\z} |
19 | 19 | ].freeze |
20 | 20 |
|
21 | 21 | # Validate all the URLs in the versions json |
|
0 commit comments