Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (7)
bump jcodings
· 522db76a
Marcin Mielzynski
authored
Oct 12, 2018
522db76a
add code range tests
· 74472d94
Marcin Mielzynski
authored
Oct 12, 2018
74472d94
Fix opEndLine singlebyte specialization
· 6d1b49f5
Marcin Mielzynski
authored
Oct 14, 2018
6d1b49f5
better fix for jruby/5368
· c92d23a7
Marcin Mielzynski
authored
Oct 14, 2018
c92d23a7
[maven-release-plugin] prepare release joni-2.1.25
· d575031f
Marcin Mielzynski
authored
Oct 14, 2018
d575031f
[maven-release-plugin] prepare for next development iteration
· a9c665ef
Marcin Mielzynski
authored
Oct 14, 2018
a9c665ef
add regression for jruby/jruby#5368
· 7036b086
Marcin Mielzynski
authored
Oct 15, 2018
7036b086
Show whitespace changes
Inline
Side-by-side
pom.xml
View file @
7036b086
...
...
@@ -4,7 +4,7 @@
<groupId>
org.jruby.joni
</groupId>
<artifactId>
joni
</artifactId>
<packaging>
jar
</packaging>
<version>
2.1.2
5
-SNAPSHOT
</version>
<version>
2.1.2
6
-SNAPSHOT
</version>
<name>
Joni
</name>
<description>
Java port of Oniguruma: http://www.geocities.jp/kosako3/oniguruma
...
...
@@ -66,7 +66,7 @@
<dependency>
<groupId>
org.jruby.jcodings
</groupId>
<artifactId>
jcodings
</artifactId>
<version>
1.0.4
0
</version>
<version>
1.0.4
1
</version>
</dependency>
<dependency>
<groupId>
junit
</groupId>
...
...
src/org/joni/ByteCodeMachine.java
View file @
7036b086
...
...
@@ -1273,7 +1273,7 @@ class ByteCodeMachine extends StackMachine {
private
void
opEndLineSb
()
{
if
(
s
==
end
)
{
if
(
Config
.
USE_NEWLINE_AT_END_OF_STRING_HAS_EMPTY_LINE
)
{
if
(
str
==
end
||
bytes
[
sprev
]
!
=
Encoding
.
NEW_LINE
)
{
if
(
str
==
end
||
!(
sprev
<
end
&&
bytes
[
sprev
]
=
=
Encoding
.
NEW_LINE
)
)
{
if
(
isNotEol
(
msaOptions
))
opFail
();
}
return
;
...
...
test/org/joni/test/TestU8.java
View file @
7036b086
...
...
@@ -349,5 +349,10 @@ public class TestU8 extends Test {
ns
(
"💌"
,
"aa"
);
ns
(
"aa"
,
"💌"
);
x2s
(
"\\P{In_Supplemental_Symbols_and_Pictographs}?"
,
""
,
0
,
0
);
x2s
(
"\\P{In_Transport_and_Map_Symbols}?"
,
""
,
0
,
0
);
x2s
(
"^(\"|)(.*)\\1$"
,
"X6"
,
0
,
2
);
}
}