PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: Polymer/vulcanize (js)

Issue:
--strip-exclude Doesn't work for relative paths
To have vulcanize successfully strip a `<link>` tag, the path has to be absolute. 

Suggest using `href.search(r) >= 0` instead of `href == r` inside the `isStrippedImport` function (as it is in the `isExcludedHref` function).

Pull request:
Strip Excludes should be fuzzy like Excludes
Fixes #254 --strip-exclude Doesn't work for relative paths

Patch:
diff --git a/.travis.yml b/.travis.yml
index c3e3870..be3568a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,6 @@
 language: node_js
 node_js:
   - "0.10"
+  - "0.12"
   - "4"
 sudo: false
diff --git a/lib/vulcan.js b/lib/vulcan.js
index 62ea9c9..6a274c5 100644
--- a/lib/vulcan.js
+++ b/lib/vulcan.js
@@ -140,7 +140,7 @@ Vulcan.prototype = {
     }
     var href = importMeta.href;
     return this.stripExcludes.some(function(r) {
-      return r == href;
+      return href.search(r) >= 0;
     });
   },
 


Test patch:
diff --git a/test/test.js b/test/test.js
index 04326a0..461dc25 100644
--- a/test/test.js
+++ b/test/test.js
@@ -578,6 +578,23 @@ suite('Vulcan', function() {
       process(inputPath, callback, options);
     });
 
+    test('Strip Excludes does not have to be exact', function(done) {
+      var options = {
+        stripExcludes: ['simple-import']
+      };
+
+      var callback = function(err, doc) {
+        if (err) {
+          return done(err);
+        }
+        var imports = dom5.queryAll(doc, excluded);
+        assert.equal(imports.length, 0);
+        done();
+      };
+
+      process(inputPath, callback, options);
+    });
+
     test('Excluded comments are removed', function(done) {
       var options = {
         stripComments: true