File tree 1 file changed +8
-4
lines changed
io.sloeber.core/src/io/sloeber/core/txt
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 45
45
public class WorkAround extends Const {
46
46
// Each time this class is touched consider changing the String below to enforce
47
47
// updates
48
- private static final String FIRST_SLOEBER_WORKAROUND_LINE = "#Sloeber created workaound file V1.04.test 03 " ;
48
+ private static final String FIRST_SLOEBER_WORKAROUND_LINE = "#Sloeber created workaound file V1.04.test 04 " ;
49
49
50
50
/**
51
51
* workarounds done at installation time. I try to keep those at a minimum but
@@ -370,9 +370,13 @@ private static String platformApplyStandardWorkArounds(String inPlatformTxt) {
370
370
while (regex_macher .find ()) {
371
371
String origLine = platformTXT .substring (regex_macher .start (), regex_macher .end ());
372
372
String workedAroundLine = origLine .replace ("(?:" , "(" );
373
- String badSuffix = "\\ s+([0-9]+).*" ;
374
- if (workedAroundLine .endsWith (badSuffix )) {
375
- workedAroundLine = workedAroundLine .substring (0 , workedAroundLine .length () - badSuffix .length ());
373
+ String badSuffix1 = "\\ s+([0-9]+).*" ;
374
+ String badSuffix2 = "|)" ;
375
+ if (workedAroundLine .endsWith (badSuffix1 )) {
376
+ workedAroundLine = workedAroundLine .substring (0 , workedAroundLine .length () - badSuffix1 .length ());
377
+ }
378
+ if (workedAroundLine .endsWith (badSuffix2 )) {
379
+ workedAroundLine = workedAroundLine .substring (0 , workedAroundLine .length () - 2 ) + ")" ;
376
380
}
377
381
if (!origLine .equals (workedAroundLine )) {
378
382
replaceInfo .put (origLine , workedAroundLine );
You can’t perform that action at this time.
0 commit comments