Skip to content

Commit 3bec883

Browse files
committed
Only support full-line version of # comment in constraints
1 parent d4c2b09 commit 3bec883

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/com/biglybt/core/tag/impl/TagPropertyConstraintHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
private final ShareManager share_manager;
9898

9999
private static final Pattern COMMENT_PATTERN1 = Pattern.compile( "/\\*(.*?)\\*/", Pattern.DOTALL );
100-
private static final Pattern COMMENT_PATTERN2 = Pattern.compile( "((#|//).*$)" );
100+
private static final Pattern COMMENT_PATTERN2 = Pattern.compile( "((^#|//).*$)" );
101101

102102
private volatile boolean initialised;
103103

0 commit comments

Comments
 (0)