Skip to content

Commit b6a1a41

Browse files
committed
style(js): fix code style in JS
1 parent 3c44a1f commit b6a1a41

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

_javascript/utils/locale-datetime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/* A tool for locale datetime */
88
const LocaleHelper = (function () {
9-
const locale = $('html').attr('lang').substr(0, 2)
9+
const locale = $('html').attr('lang').substr(0, 2);
1010
const attrTimestamp = 'data-ts';
1111
const attrDateFormat = 'data-df';
1212

_javascript/utils/smooth-scroll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $(function() {
2828
const hash = decodeURI(this.hash);
2929
let toFootnoteRef = RegExp(/^#fnref:/).test(hash);
3030
let toFootnote = toFootnoteRef ? false : RegExp(/^#fn:/).test(hash);
31-
let selector = hash.includes(":") ? hash.replace(/\:/g, "\\:") : hash;
31+
let selector = hash.includes(":") ? hash.replace(/:/g, "\\:") : hash;
3232
let $target = $(selector);
3333

3434
let isMobileViews = $topbarTitle.is(":visible");

assets/js/dist/categories.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/dist/commons.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)