diff options
| author | Mark Otto <[email protected]> | 2014-02-08 15:46:51 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-02-08 15:46:51 -0800 |
| commit | 06e6affa4ab86ea67fefc59386e6e2d6c53cc209 (patch) | |
| tree | 05cc5a18c23f08345233a4785d1daa52bb452778 /docs/assets/js | |
| parent | b683433f672525cbbe25a4d5aa928610a66ea030 (diff) | |
| parent | bdf9ce4c45b81e62ab7ebd88a9e3daa98ecdd10c (diff) | |
| download | bootstrap-06e6affa4ab86ea67fefc59386e6e2d6c53cc209.tar.xz bootstrap-06e6affa4ab86ea67fefc59386e6e2d6c53cc209.zip | |
Merge pull request #12645 from ZDroid/docs-js-semicolons
Omit semicolons consistently in docs
Diffstat (limited to 'docs/assets/js')
| -rw-r--r-- | docs/assets/js/customizer.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/assets/js/customizer.js b/docs/assets/js/customizer.js index d165c4a02..077fd3218 100644 --- a/docs/assets/js/customizer.js +++ b/docs/assets/js/customizer.js @@ -13,7 +13,7 @@ window.onload = function () { // wait for load in a dumb way because B-0 ' * Bootstrap v3.1.0 (http://getbootstrap.com)\n' + ' * Copyright 2011-2014 Twitter, Inc.\n' + ' * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n' + - ' */\n\n'; + ' */\n\n' function showError(msg, err) { $('<div id="bsCustomizerAlert" class="bs-customizer-alert">\ @@ -40,9 +40,9 @@ window.onload = function () { // wait for load in a dumb way because B-0 } function getQueryParam(key) { - key = key.replace(/[*+?^$.\[\]{}()|\\\/]/g, '\\$&'); // escape RegEx meta chars - var match = location.search.match(new RegExp('[?&]' + key + '=([^&]+)(&|$)')); - return match && decodeURIComponent(match[1].replace(/\+/g, ' ')); + key = key.replace(/[*+?^$.\[\]{}()|\\\/]/g, '\\$&') // escape RegEx meta chars + var match = location.search.match(new RegExp('[?&]' + key + '=([^&]+)(&|$)')) + return match && decodeURIComponent(match[1].replace(/\+/g, ' ')) } function createGist(configJson) { |
