Skip to content

Commit

Permalink
Release 0.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
hythof committed Jul 6, 2018
1 parent ee28a06 commit f893e28
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.github.wovnio</groupId>
<artifactId>wovnjava</artifactId>
<name>wovnjava</name>
<version>0.3.5</version>
<version>0.3.6</version>
<url>https://github.com/WOVNio/wovnjava</url>

<licenses>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/wovnio/wovnjava/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import javax.xml.bind.DatatypeConverter;

class Settings {
public static final String VERSION = "0.3.4";
public static final String VERSION = "0.3.6";
static final String UrlPatternRegPath = "/([^/.?]+)";
static final String UrlPatternRegQuery = "(?:(?:\\?.*&)|\\?)wovn=([^&]+)(?:&|$)";
static final String UrlPatternRegSubdomain = "^([^.]+)\\.";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void testDisablePrettyPrint() {
}

public void testRemoveWovnSnippet() {
String original = "<html><head><script src=\"//j.wovn.io/1\" data-wovnio=\"key=NCmbvk&amp;backend=true&amp;currentLang=en&amp;defaultLang=en&amp;urlPattern=path&amp;langCodeAliases={}&amp;version=0.3.4\" data-wovnio-type=\"backend_without_api\" async></script></head><body></body></html>";
String original = "<html><head><script src=\"//j.wovn.io/1\" data-wovnio=\"key=NCmbvk&amp;backend=true&amp;currentLang=en&amp;defaultLang=en&amp;urlPattern=path&amp;langCodeAliases={}&amp;version=0.3.6\" data-wovnio-type=\"backend_without_api\" async></script></head><body></body></html>";
String removedHtml = "<html><head></head><body></body></html>";
Settings settings = TestUtil.makeSettings(new HashMap<String, String>() {{ put("supportedLangs", "en,fr,ja"); }});
HtmlConverter converter = new HtmlConverter(settings, original);
Expand Down Expand Up @@ -82,7 +82,7 @@ public void testNested() {

public void testMixAllCase() {
String original = "<html><head>" +
"<script src=\"//j.wovn.io/1\" data-wovnio=\"key=NCmbvk&amp;backend=true&amp;currentLang=en&amp;defaultLang=en&amp;urlPattern=path&amp;langCodeAliases={}&amp;version=0.3.4\" data-wovnio-type=\"backend_without_api\" async></script>" +
"<script src=\"//j.wovn.io/1\" data-wovnio=\"key=NCmbvk&amp;backend=true&amp;currentLang=en&amp;defaultLang=en&amp;urlPattern=path&amp;langCodeAliases={}&amp;version=0.3.6\" data-wovnio-type=\"backend_without_api\" async></script>" +
"<script>alert(1)</script>" +
"<link ref=\"altername\" hreflang=\"en\" href=\"http://localhost:8080/\"><link ref=\"altername\" hreflang=\"ja\" href=\"http://localhost:8080/ja/\"><link ref=\"altername\" hreflang=\"ar\" href=\"http://localhost:8080/ar/\">" +
"</head><body>" +
Expand Down

0 comments on commit f893e28

Please sign in to comment.