From da0ce38f7d6c602f0a4267e89b9b03685f2b219e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=F8=EDk?= Date: Sun, 2 Jun 2013 16:19:39 +0200 Subject: [PATCH] Issue #111, AS3:Object literal truncates line --- trunk/src/com/jpexs/decompiler/flash/graph/Graph.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java b/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java index 6dc101bc0..59511e17d 100644 --- a/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java +++ b/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java @@ -1368,12 +1368,12 @@ public class Graph { String parts[] = ret.toString().split("\r\n"); ret = new StringBuilder(); - String labelPattern="loop(switch)?[0-9]*:"; + String labelPattern = "loop(switch)?[0-9]*:"; try { Stack loopStack = new Stack(); for (int p = 0; p < parts.length; p++) { String stripped = Highlighting.stripHilights(parts[p]); - if (stripped.matches(labelPattern)){ // && (!stripped.startsWith("case ")) && (!stripped.equals("default:"))) { + if (stripped.matches(labelPattern)) { loopStack.add(stripped.substring(0, stripped.length() - 1)); } if (stripped.startsWith("break ")) {