gctGenerator/site/.vuepress/components/codes/codegen.js

18 lines
282 B
JavaScript
Raw Normal View History

import InstantRestart from './InstantRestart/codegen.js';
export default {
InstantRestart,
};
/**
* @param {string|null} s -- raw input string
*/
export function parseJSON(s) {
if (s == null) return null;
try {
return JSON.parse(s);
} catch {
return null;
}
}