projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add post builder.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
template
/
CssClassNameFilter.java
diff --git
a/src/main/java/net/pterodactylus/sone/template/CssClassNameFilter.java
b/src/main/java/net/pterodactylus/sone/template/CssClassNameFilter.java
index
611c6d1
..
a3f8db6
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/template/CssClassNameFilter.java
+++ b/
src/main/java/net/pterodactylus/sone/template/CssClassNameFilter.java
@@
-1,5
+1,5
@@
/*
/*
- * Sone - CssClassNameFilter.java - Copyright © 2010 David Roden
+ * Sone - CssClassNameFilter.java - Copyright © 2010
–2013
David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-35,7
+35,7
@@
public class CssClassNameFilter implements Filter {
* {@inheritDoc}
*/
@Override
* {@inheritDoc}
*/
@Override
- public Object format(TemplateContext templateContext, Object data, Map<String,
String
> parameters) {
+ public Object format(TemplateContext templateContext, Object data, Map<String,
Object
> parameters) {
return String.valueOf(data).replaceAll("[^a-zA-Z0-9-]", "_");
}
return String.valueOf(data).replaceAll("[^a-zA-Z0-9-]", "_");
}