diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 822413b9..de67d9d6 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -1,4 +1,4 @@
-name: Linting
+name: Lint
on:
pull_request:
diff --git a/.github/workflows/ci.yml b/.github/workflows/test.yml
similarity index 58%
rename from .github/workflows/ci.yml
rename to .github/workflows/test.yml
index a99ed688..8da60b37 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/test.yml
@@ -1,4 +1,4 @@
-name: Ruby CI
+name: Test
on:
pull_request:
@@ -15,26 +15,14 @@ jobs:
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
runs-on: ubuntu-latest
- strategy:
- fail-fast: true
- matrix:
- ruby-version:
- - 3.1
- experimental: [false]
- include:
- - ruby-version: head
- experimental: true
-
- continue-on-error: ${{ matrix.experimental }}
-
steps:
- uses: actions/checkout@v3
- name: Install libxslt and libxml2
run: sudo apt-get install libxslt-dev libxml2-dev
- - name: Set up Ruby ${{ matrix.ruby-version }}
+ - name: Set up Ruby 3.1
uses: ruby/setup-ruby@v1
with:
- ruby-version: ${{ matrix.ruby-version }}
+ ruby-version: 3.1
bundler-cache: true
- name: Install dependencies
run: bundle install
diff --git a/lib/html_proofer/configuration.rb b/lib/html_proofer/configuration.rb
index 62f00d6e..ce986322 100644
--- a/lib/html_proofer/configuration.rb
+++ b/lib/html_proofer/configuration.rb
@@ -134,7 +134,17 @@ def parse_cli_options(args)
section(opts, "Ignore Configuration") do
set_option(opts, "--ignore-files [FILE1,FILE2,...]") do |long_opt_symbol, list|
- @options[long_opt_symbol] = list.nil? ? [] : list.split(",")
+ @options[long_opt_symbol] = if list.nil?
+ []
+ else
+ list.split(",").map.each do |l|
+ if l.start_with?("/") && l.end_with?("/")
+ Regexp.new(l[1...-1])
+ else
+ l
+ end
+ end
+ end
end
set_option(opts, "--[no-]ignore-empty-alt") do |long_opt_symbol, arg|
@@ -285,7 +295,7 @@ module ConfigurationHelp
check_internal_hash: ["Checks whether internal hashes exist (even if the webpage exists) (default: `true`)."],
check_sri: ["Check that `` and `