We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd924eb commit 02dac59Copy full SHA for 02dac59
1 file changed
petitnote/app/neo/neo.js
@@ -425,14 +425,20 @@ document.addEventListener("DOMContentLoaded", () => {
425
*
426
* @param {string} value
427
* @returns {string}
428
- * @note 小文字が返る
+ * @note true|falseのときは小文字が返る
429
*/
430
Neo.fixConfig = function (value) {
431
// javaでは"#12345"を色として解釈するがjavascriptでは"#012345"に変換しないとだめ
432
if (value.match(/^#[0-9a-fA-F]{5}$/)) {
433
value = "#0" + value.slice(1);
434
}
435
- return value.toLocaleLowerCase();
+ //true|falseの時は小文字に統一
436
+ value =
437
+ value.toLocaleLowerCase() === "true" ||
438
+ value.toLocaleLowerCase() === "false"
439
+ ? value.toLocaleLowerCase()
440
+ : value;
441
+ return value;
442
};
443
444
Neo.getStyleSheet = function () {
0 commit comments