git://git.nikiroo.be
/
gofetch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Small fixes in different places
[gofetch.git]
/
src
/
be
/
nikiroo
/
gofetch
/
support
/
LWN.java
diff --git
a/src/be/nikiroo/gofetch/support/LWN.java
b/src/be/nikiroo/gofetch/support/LWN.java
index 37a5a8f2fefcf8a88b71228e3ee62db01b88a86a..c033104f92fed7e7a81a5673894c0463a8d0608e 100644
(file)
--- a/
src/be/nikiroo/gofetch/support/LWN.java
+++ b/
src/be/nikiroo/gofetch/support/LWN.java
@@
-64,7
+64,7
@@
public class LWN extends BasicSupport {
String categ = "";
pos = details.indexOf("]");
if (pos >= 0) {
String categ = "";
pos = details.indexOf("]");
if (pos >= 0) {
- categ = details.substring(1, pos
+ 1
).trim();
+ categ = details.substring(1, pos).trim();
}
String author = "";
}
String author = "";
@@
-77,9
+77,9
@@
public class LWN extends BasicSupport {
pos = details.indexOf(" Posted ");
if (pos >= 0) {
date = details.substring(pos + " Posted ".length()).trim();
pos = details.indexOf(" Posted ");
if (pos >= 0) {
date = details.substring(pos + " Posted ".length()).trim();
- pos = d
etails
.indexOf(" by ");
+ pos = d
ate
.indexOf(" by ");
if (pos >= 0) {
if (pos >= 0) {
-
author = details
.substring(0, pos).trim();
+
date = date
.substring(0, pos).trim();
}
}
}
}