Skip to content

Commit

Permalink
fix escape tag method name
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Feb 25, 2019
1 parent 4008d3b commit a8748d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ public dObject run(Attribute attribute, dObject object) {
@Override
public dObject run(Attribute attribute, dObject object) {
String element = ((Element) object).element;
return new Element(EscapeTags.Escape(element)).getObjectAttribute(attribute.fulfill(1));
return new Element(EscapeTags.escape(element)).getObjectAttribute(attribute.fulfill(1));
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1632,7 +1632,7 @@ public dObject run(Attribute attribute, dObject object) {
public dObject run(Attribute attribute, dObject object) {
dList escaped = new dList();
for (String entry : (dList) object) {
escaped.add(EscapeTags.Escape(entry));
escaped.add(EscapeTags.escape(entry));
}
return escaped.getObjectAttribute(attribute.fulfill(1));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void run(ReplaceableTagEvent event) {
* @param input the unescaped data.
* @return the escaped data.
*/
public static String Escape(String input) {
public static String escape(String input) {
if (input == null) {
return null;
}
Expand Down Expand Up @@ -120,7 +120,7 @@ public void escapeTags(ReplaceableTagEvent event) {
dB.echoError("Escape tag '" + event.raw_tag + "' does not have a value!");
return;
}
event.setReplacedObject(CoreUtilities.autoAttrib(new Element(Escape(event.getValue())), event.getAttributes().fulfill(1)));
event.setReplacedObject(CoreUtilities.autoAttrib(new Element(escape(event.getValue())), event.getAttributes().fulfill(1)));
}
}

Expand All @@ -134,7 +134,7 @@ public void unEscapeTags(ReplaceableTagEvent event) {
// -->
if (event.matches("unescape")) {
if (!event.hasValue()) {
dB.echoError("Escape tag '" + event.raw_tag + "' does not have a value!");
dB.echoError("Unescape tag '" + event.raw_tag + "' does not have a value!");
return;
}
event.setReplacedObject(CoreUtilities.autoAttrib(new Element(unEscape(event.getValue())), event.getAttributes().fulfill(1)));
Expand Down

0 comments on commit a8748d5

Please sign in to comment.