@@ -96,6 +96,18 @@ Crowi.prototype.init = function() {
});
}
+Crowi.prototype.isPageId = function(pageId) {
+ if (!pageId) {
+ return false;
+ }
+
+ if (typeof pageId === 'string' && pageId.match(/^[\da-f]{24}$/)) {
+ return true;
+};
Crowi.prototype.setConfig = function(config) {
this.config = config;
};