From bdf9ce4c45b81e62ab7ebd88a9e3daa98ecdd10c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zlatan=20Vasovi=C4=87?= Date: Fri, 7 Feb 2014 19:31:08 +0100 Subject: Omit semicolons consistently in docs --- docs/assets/js/customizer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/assets') diff --git a/docs/assets/js/customizer.js b/docs/assets/js/customizer.js index 405d87572..ecbdc8833 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) { $('
\ @@ -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) { -- cgit v1.2.3