Skip to content

Commit f0cae5c

Browse files
committed
polishing buttons and fixing source names pattern in advanced discoverer / composer
1 parent 6759228 commit f0cae5c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

jsondiscoverer.web/WebContent/app/partials/advanced.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h4 style="padding-top: 20px;">Step 2. Discover and Compose </h4>
4343
<a style="text-decoration: none;" ng-href="{{metamodelFile}}" target="_blank">
4444
<button style="margin-top: 10px;" class="btn btn-block" type="button" ng-disabled="metamodelFile == ''"
4545
data-intro="We work with Eclipse Modeling Framework (EMF) so if you want you can download the schema as an Ecore file" data-position="bottom">
46-
Download schema <small>(Save as Ecore)</small>
46+
Download Schema <small>(Save as Ecore)</small>
4747
</button>
4848
</a>
4949
</div>

jsondiscoverer.web/WebContent/app/partials/simple.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ <h3>Your JSON document</h3>
6464
<a style="text-decoration: none;" ng-href="{{metamodelFile}}" target="_blank">
6565
<button style="margin-top: 20px;" class="btn btn-block" type="button" ng-disabled="metamodelFile == ''"
6666
data-intro="We work with Eclipse Modeling Framework (EMF) so if you want you can download the schema as an Ecore file" data-position="left">
67-
Download schema<br>
67+
Download Schema<br>
6868
<small>(Save as Ecore)</small>
6969
</button>
7070
</a>
7171
<a style="text-decoration: none;" ng-href="{{modelFile}}" target="_blank">
7272
<button style="margin-top: 10px;" class="btn btn-block" type="button" ng-disabled="modelFile == ''"
7373
data-intro="You can also download the data model as an XMI file (conforming to the previous Ecore model)" data-position="bottom">
74-
Download data<br>
74+
Download Data<br>
7575
<small>(Save as XMI)</small>
7676
</button>
7777
</a>

jsondiscoverer.web/src/jsondiscoverer/web/JsonAdvancedDiscovererServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class JsonAdvancedDiscovererServlet extends AbstractJsonDiscoverer {
5858
/** This pattern is used to analyze the params
5959
* The format is sources[JSON_SOURCE_NAME][SOMETHING]([])?
6060
* The important part is the JSON_SOURCE_NAME which provides the name of the parameter */
61-
private static String paramsPattern = Pattern.quote("sources[") + "([a-zA-Z]*)"+ Pattern.quote("][") + "[\\$a-zA-Z]*" + Pattern.quote("]") + "(" + Pattern.quote("[]") + ")?";
61+
private static String paramsPattern = Pattern.quote("sources[") + "([a-zA-Z0-9]*)"+ Pattern.quote("][") + "[\\$a-zA-Z]*" + Pattern.quote("]") + "(" + Pattern.quote("[]") + ")?";
6262

6363
@Override
6464
public void init() throws ServletException {

jsondiscoverer.web/src/jsondiscoverer/web/JsonComposerServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class JsonComposerServlet extends AbstractJsonDiscoverer {
4949
/** This pattern is used to analyze the params
5050
* The format is sources[JSON_SOURCE_NAME][SOMETHING]([])?([input|output])?
5151
* The important part is the JSON_SOURCE_NAME which provides the name of the parameter */
52-
private static String paramsPattern = Pattern.quote("sources[") + "([a-zA-Z]*)"+ Pattern.quote("]") +
52+
private static String paramsPattern = Pattern.quote("sources[") + "([a-zA-Z0-9]*)"+ Pattern.quote("]") +
5353
Pattern.quote("[") + "[\\$a-zA-Z]*" + Pattern.quote("]") +
5454
"(" + Pattern.quote("[") + "[0-9]*" + Pattern.quote("]") + ")?" +
5555
"(" + Pattern.quote("[") + "[a-zA-Z]*" + Pattern.quote("]") + ")?";

0 commit comments

Comments
 (0)