• R/O
  • SSH
  • HTTPS

format-sql: Commit


Commit MetaInfo

Revision74 (tree)
Time2018-09-03 20:50:07
Authorkimur058

Log Message

case文の整形不備を修正

Change Summary

Incremental Difference

--- trunk/DMLBreaker3.x/DMLBreaker.js (revision 73)
+++ trunk/DMLBreaker3.x/DMLBreaker.js (revision 74)
@@ -938,9 +938,9 @@
938938 formatSql += wkAdd.substring(0, wkAdd.length - 6) + "\n\t" + tab + wkAdd.slice(-6);
939939 wkAdd = "";
940940
941- } else if (wkAdd.match(/ end |^end |\tend | end$| end /i) != null) {
941+ } else if (wkAdd.match(/ end |^end |\tend | end\r| end\n| end /i) != null) {
942942
943- var len = wkAdd.match(/ end |\tend | end /i) != null ? -5 : -4;
943+ var len = wkAdd.match(/^end /i) != null ? -4 : -5;
944944 formatSql += wkAdd.substring(0, wkAdd.length + len) + "\n\t" + tab + wkAdd.slice(len);
945945 wkAdd = "";
946946 tab = tab.replace("\t", "");
Show on old repository browser