• R/O
  • SSH
  • HTTPS

format-sql: Commit


Commit MetaInfo

Revision67 (tree)
Time2018-08-25 19:46:48
Authorkimur058

Log Message

case文の整形不備を修正

Change Summary

Incremental Difference

--- trunk/DMLBreaker3.x/DMLBreaker.js (revision 66)
+++ trunk/DMLBreaker3.x/DMLBreaker.js (revision 67)
@@ -911,9 +911,9 @@
911911 formatSql += wkAdd.substring(0, wkAdd.length - 6) + "\n\t" + tab + wkAdd.slice(-6);
912912 wkAdd = "";
913913
914- } else if (wkAdd.match(/ end |^end |\tend | end$/i) != null) {
914+ } else if (wkAdd.match(/ end |^end |\tend | end$| end /i) != null) {
915915
916- var len = wkAdd.match(/ end |\tend /i) != null ? -5 : -4;
916+ var len = wkAdd.match(/ end |\tend | end /i) != null ? -5 : -4;
917917 formatSql += wkAdd.substring(0, wkAdd.length + len) + "\n\t" + tab + wkAdd.slice(len);
918918 wkAdd = "";
919919 tab = tab.replace("\t", "");
Show on old repository browser