adding more flexibilty
hopefully this is how you do amd support
This commit is contained in:
@@ -54,14 +54,24 @@
|
|||||||
<pre
|
<pre
|
||||||
class="sunlight-highlight-javascript linenums">'use strict';
|
class="sunlight-highlight-javascript linenums">'use strict';
|
||||||
|
|
||||||
var wildstring = (function(module) {
|
(function (root, definition) {
|
||||||
|
if (typeof(module) !== 'undefined') {
|
||||||
|
module.exports = definition();
|
||||||
|
}
|
||||||
|
else if (typeof(define) === 'function' && typeof(define.amd) === 'object') {
|
||||||
|
define(definition);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this['wildstring'] = definition();
|
||||||
|
}
|
||||||
|
}('wildstring', function () {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @namespace wildstring
|
* @namespace wildstring
|
||||||
* @property {string} wildcard the wildcard to use in your strings, defaults to '*'
|
* @property {string} wildcard the wildcard to use in your strings, defaults to '*'
|
||||||
* @property {boolean} caseSensitive whether matches should care about case, defaults to true
|
* @property {boolean} caseSensitive whether matches should care about case, defaults to true
|
||||||
*/
|
*/
|
||||||
wildstring = {
|
var wildstring = {
|
||||||
wildcard: '*',
|
wildcard: '*',
|
||||||
caseSensitive: true
|
caseSensitive: true
|
||||||
};
|
};
|
||||||
@@ -230,7 +240,7 @@ wildstring.replace = function (pattern, strings) {
|
|||||||
|
|
||||||
module.exports = wildstring;
|
module.exports = wildstring;
|
||||||
return wildstring;
|
return wildstring;
|
||||||
}(module || {}));
|
}));
|
||||||
</pre>
|
</pre>
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
@@ -260,7 +270,7 @@ return wildstring;
|
|||||||
|
|
||||||
<span class="jsdoc-message">
|
<span class="jsdoc-message">
|
||||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||||
on Wed Aug 5th 2015 using the <a
|
on Sun Aug 9th 2015 using the <a
|
||||||
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||||
</span>
|
</span>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ grunt</code></pre><p>grunt will run all the tests and jshint, so just make sure
|
|||||||
|
|
||||||
<span class="jsdoc-message">
|
<span class="jsdoc-message">
|
||||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||||
on Wed Aug 5th 2015 using the <a
|
on Sun Aug 9th 2015 using the <a
|
||||||
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||||
</span>
|
</span>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@@ -165,7 +165,7 @@
|
|||||||
|
|
||||||
<span class="jsdoc-message">
|
<span class="jsdoc-message">
|
||||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||||
on Wed Aug 5th 2015 using the <a
|
on Sun Aug 9th 2015 using the <a
|
||||||
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||||
</span>
|
</span>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@@ -176,7 +176,7 @@
|
|||||||
<ul class="dummy">
|
<ul class="dummy">
|
||||||
<li>
|
<li>
|
||||||
<a href="F__Git_wildstring_wildstring.js.html">F:/Git/wildstring/wildstring.js</a>,
|
<a href="F__Git_wildstring_wildstring.js.html">F:/Git/wildstring/wildstring.js</a>,
|
||||||
<a href="F__Git_wildstring_wildstring.js.html#sunlight-1-line-5">line 5</a>
|
<a href="F__Git_wildstring_wildstring.js.html#sunlight-1-line-15">line 15</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@@ -339,7 +339,7 @@
|
|||||||
<ul class="dummy">
|
<ul class="dummy">
|
||||||
<li>
|
<li>
|
||||||
<a href="F__Git_wildstring_wildstring.js.html">F:/Git/wildstring/wildstring.js</a>,
|
<a href="F__Git_wildstring_wildstring.js.html">F:/Git/wildstring/wildstring.js</a>,
|
||||||
<a href="F__Git_wildstring_wildstring.js.html#sunlight-1-line-22">line 22</a>
|
<a href="F__Git_wildstring_wildstring.js.html#sunlight-1-line-32">line 32</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@@ -498,7 +498,7 @@
|
|||||||
<ul class="dummy">
|
<ul class="dummy">
|
||||||
<li>
|
<li>
|
||||||
<a href="F__Git_wildstring_wildstring.js.html">F:/Git/wildstring/wildstring.js</a>,
|
<a href="F__Git_wildstring_wildstring.js.html">F:/Git/wildstring/wildstring.js</a>,
|
||||||
<a href="F__Git_wildstring_wildstring.js.html#sunlight-1-line-70">line 70</a>
|
<a href="F__Git_wildstring_wildstring.js.html#sunlight-1-line-80">line 80</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@@ -662,7 +662,7 @@
|
|||||||
<ul class="dummy">
|
<ul class="dummy">
|
||||||
<li>
|
<li>
|
||||||
<a href="F__Git_wildstring_wildstring.js.html">F:/Git/wildstring/wildstring.js</a>,
|
<a href="F__Git_wildstring_wildstring.js.html">F:/Git/wildstring/wildstring.js</a>,
|
||||||
<a href="F__Git_wildstring_wildstring.js.html#sunlight-1-line-147">line 147</a>
|
<a href="F__Git_wildstring_wildstring.js.html#sunlight-1-line-157">line 157</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@@ -761,7 +761,7 @@
|
|||||||
|
|
||||||
<span class="jsdoc-message">
|
<span class="jsdoc-message">
|
||||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||||
on Wed Aug 5th 2015 using the <a
|
on Sun Aug 9th 2015 using the <a
|
||||||
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||||
</span>
|
</span>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
Reference in New Issue
Block a user