瀏覽代碼

fixup migrtion script for plantuml

Akihiro Nakashima 2 年之前
父節點
當前提交
4822c5285b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      bin/data-migrations/src/migrations/v60x/plantuml.js

+ 2 - 2
bin/data-migrations/src/migrations/v60x/plantuml.js

@@ -7,7 +7,7 @@ module.exports = [
    * @type {MigrationModule}
    */
   (body) => {
-    const oldDrawioRegExp = /:::\s?drawio\n(.+?)\n:::/g; // drawio old format
-    return body.replace(oldDrawioRegExp, '``` drawio\n$1\n```');
+    const oldPlantUmlRegExp = /@startuml\n([\s\S]*?)\n@enduml/g; // plantUML old format
+    return body.replace(oldPlantUmlRegExp, '``` plantuml\n$1\n```');
   },
 ];