rename index.js to wildstring.js
semver requires a major version bump
This commit is contained in:
@@ -79,8 +79,7 @@
|
||||
<a href="https://gitter.im/deltreey/wildstring?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"><img src="https://badges.gitter.im/Join%20Chat.svg" alt="Join the chat at https://gitter.im/deltreey/wildstring"></a></p>
|
||||
<h2>Shake it shake it</h2><p>Installing wildstring is a snap. wildstring has no dependencies, so you don't need anything else to run it. If you want to use tools though, here's some tips on how to install it with popular installers.</p>
|
||||
<h4>node.js</h4><pre class="prettyprint source lang-bash"><code>npm install wildstring</code></pre><p>then:</p>
|
||||
<pre class="prettyprint source lang-js"><code>var wildstring = require('wildstring');</code></pre><h4>bower</h4><pre class="prettyprint source lang-bash"><code>bower install wildstring</code></pre><h4>html</h4><p>make sure you rename the <code>index.js</code> file to <code>wildstring.js</code> when you add it to your project</p>
|
||||
<pre class="prettyprint source lang-html"><code><script src="wildstring.js"></script></code></pre><h2>Hold me tight</h2><p>Especially with something that does something new, it's important to see how it works. Below are some examples, but here's a brief explanation as well.</p>
|
||||
<pre class="prettyprint source lang-js"><code>var wildstring = require('wildstring');</code></pre><h4>bower</h4><pre class="prettyprint source lang-bash"><code>bower install wildstring</code></pre><h4>html</h4><pre class="prettyprint source lang-html"><code><script src="wildstring.js"></script></code></pre><h2>Hold me tight</h2><p>Especially with something that does something new, it's important to see how it works. Below are some examples, but here's a brief explanation as well.</p>
|
||||
<p>In this explanation, I'll use <code>*</code> as my wildcard for simplicity. If you put a wildcard at the beginning, for example <code>*Thing</code> then you can match anything or nothing before your string. So your string could be <code>Wild Thing</code> or just <code>Thing</code> and it would match fine. The same is true for the end. <code>Wild*</code> would match <code>Wild Thing</code> or just <code>Wild</code>. If you want to match text in the middle of the string, it works the same way. <code>Wild*Thing</code> matches both <code>WildThing</code> and <code>Wild and crazy Thing</code>.</p>
|
||||
<pre class="prettyprint source lang-js"><code>wildstring.match('Test*', 'Testing'); // true, wildcard matches 'ing'
|
||||
wildstring.match('*ing', 'testing'); // true, wildcard matches 'test'
|
||||
|
||||
Reference in New Issue
Block a user