Skip to content

Commit 70897bc

Browse files
committed
use a direct match instead of smart match (which seems to work); fixes #15
1 parent 0ec5b69 commit 70897bc

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

lib/Bio/Role/Location.pm6

+13-15
Original file line numberDiff line numberDiff line change
@@ -12,44 +12,42 @@ role Bio::Role::Location does Bio::Role::Range {
1212
has Location-Pos-Type $.start-pos-type is rw = EXACT-POS;
1313
has Location-Pos-Type $.end-pos-type is rw = EXACT-POS;
1414
has Join-Type $.type is rw = EXACT;
15-
15+
1616
method max-start {
1717
$.start + $.start-offset
1818
}
19-
19+
2020
method min-start {
2121
$.start
2222
}
23-
23+
2424
method max-end {
2525
$.end + $.end-offset
2626
}
27-
27+
2828
method min-end {
2929
$.end
3030
}
31-
31+
3232
# return Bool
3333
method is-valid returns Bool {
3434
$.start.defined && $.end.defined
3535
and
36-
$.start-pos-type !~~ AFTER
36+
$.start-pos-type != AFTER
3737
and
38-
$.end-pos-type !~~ BEFORE
38+
$.end-pos-type != BEFORE
3939
}
40-
40+
4141
method is-remote returns Bool {
4242
$!seqid.defined
4343
}
44-
44+
4545
method is-fuzzy returns Bool {
46-
$.type !~~ EXACT
46+
$.type != EXACT
4747
or
48-
$.start-pos-type !~~ EXACT-POS
48+
$.start-pos-type != EXACT-POS
4949
or
50-
$.end-pos-type !~~ EXACT-POS
50+
$.end-pos-type != EXACT-POS
5151
}
52-
53-
}
54-
5552

53+
}

0 commit comments

Comments
 (0)