return in try

This commit is contained in:
Jindra Petřík
2021-01-25 11:01:30 +01:00
parent f4e4835f29
commit ddd2d5697b
11 changed files with 162 additions and 17 deletions

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash;
/**
@@ -22,6 +23,7 @@ package com.jpexs.decompiler.flash;
public class ActionScriptTestBase {
protected String cleanPCode(String pCode) {
pCode = pCode.replaceAll("\t", " ").trim();
pCode = pCode.replaceAll("( *[\r\n]+ *)+", "\n").trim();
pCode = pCode.replaceAll(" +", " ").trim();
return pCode;