We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a43155f + 9738e85 commit 59fa079Copy full SHA for 59fa079
tutorials/common/tutorials.js
@@ -280,6 +280,7 @@ function start_keeper(alwaysKeep) {
280
if (query.keep && alwaysKeep !== true) {
281
newQuery.keep = query.keep;
282
}
283
+ var guard = false;
284
$('.codeblock').each(function () {
285
var block = $(this),
286
defaultSrc = $('textarea', block).attr('defaultvalue'),
@@ -295,8 +296,12 @@ function start_keeper(alwaysKeep) {
295
296
* average length of the url by 6 percent. */
297
comp = comp.replace(/\//g, '.').replace(/\+/g, '-').replace(/=/g, '_');
298
newQuery[key] = comp;
299
+ guard = !(/[A-Za-z0-9]/.test(comp.slice(-1)));
300
301
});
302
+ if (guard) {
303
+ newQuery['_'] = '_';
304
+ }
305
if (!inPop) {
306
utils.setQuery(newQuery, true);
307
0 commit comments