Ignore empty lines or comments in vacation point file.
This commit is contained in:
@@ -82,6 +82,9 @@ public class PointEngine {
|
||||
try (BufferedReader br = new BufferedReader(new FileReader(pointsFile))) {
|
||||
String line;
|
||||
while ((line = br.readLine()) != null) {
|
||||
if (line.isEmpty() || line.charAt(0) == '#')
|
||||
continue;
|
||||
|
||||
Matcher defaultMatcher = defaultPattern.matcher(line);
|
||||
if (defaultMatcher.find()) {
|
||||
defaultPoints = Double.parseDouble(defaultMatcher.group(1));
|
||||
|
||||
@@ -4,6 +4,8 @@ m=Jul 0.825
|
||||
m=Aug 0.825
|
||||
2026-12-24 0.5
|
||||
2026-12-31 0.5
|
||||
|
||||
# Weekends & Holidays
|
||||
dow=Sun 0.0
|
||||
dow=Sat 0.0
|
||||
2026-01-01 0.0
|
||||
|
||||
Reference in New Issue
Block a user