Skip to content

Commit

Permalink
added more about custom exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcorvi committed Apr 5, 2017
1 parent 0e0de0e commit e66c4cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@ <h3 id="custom-exclusion">Custom Exclusion</h3>

<p>The aforementioned exclusion options exclude URLs by their protocol. However, you might want to exclude URLs for any other reason.</p>

<p>Each identified URL will go through this function. The function can be used to test the URLs and return a truthy value (<code>true</code> or <code>1</code> or <code>"non-empty string"</code> ... etc) to exclude or a falsy value (<code>false</code> or <code>1</code> or <code>undefined</code> ... etc) to include.</p>

<pre><code>
// this example will exclude URLs ends with .zip
anchorme(string,{
Expand All @@ -437,6 +439,9 @@ <h3 id="custom-exclusion">Custom Exclusion</h3>
});
</code></pre>

<p><b>JSFiddle Demo</b></p>
<script async src="//jsfiddle.net/gydnngrz/3/embed/js,result/"></script>

</section>
<section class="bs-docs-section">
<h1 id="additional-features" class="page-header">Additional Features</h1>
Expand Down

0 comments on commit e66c4cb

Please sign in to comment.