Skip to content

Commit

Permalink
Patch a YAML tag error
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 13, 2015
1 parent 5c12dfd commit 26c1e1d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -447,11 +447,11 @@ public void yaml(ReplaceableTagEvent event) {
}

// Set id (name context) and path (type context)
String id = event.getNameContext();
String id = event.getNameContext().toUpperCase();
String path = event.getTypeContext();

// Check if there is a yaml file loaded with the specified id
if (!yamls.containsKey(id.toUpperCase())
if (!yamls.containsKey(id)
&& !attribute.hasAlternative()) {
dB.echoError("YAML tag '" + event.raw_tag + "' has specified an invalid ID, or the specified id has already" +
" been closed. Tag replacement aborted. ID given: '" + id + "'.");
Expand Down

0 comments on commit 26c1e1d

Please sign in to comment.