Commit 159f5222 authored by Leon Arnott's avatar Leon Arnott
Browse files

Fixed the (str:) macro alias mysteriously not existing, as intended in 412b30269ce6.

Closes #163.
parent 2f5d26ab0946
......@@ -2,6 +2,12 @@
Rough documentation is at http://twine2.neocities.org/. See below for compilation instructions.
###3.0.2 changes:
###Bugfixes
* Fixed the (str:) macro alias added in 3.0.0 mysteriously not actually having been added.
###3.0.1 changes:
####Bugfixes
......
window.storyFormat({"name":"Harlowe","version":"3.0.1","author":"Leon Arnott","description":"The default story format for Twine 2. See its <a href='http://twine2.neocities.org/' target='_blank' rel='noopener noreferrer'>documentation</a>.","image":"icon.svg","url":"http://twinery.org/","license":"Zlib","proofing":false,"source":"","setup":""});
\ No newline at end of file
window.storyFormat({"name":"Harlowe","version":"3.0.2","author":"Leon Arnott","description":"The default story format for Twine 2. See its <a href='http://twine2.neocities.org/' target='_blank' rel='noopener noreferrer'>documentation</a>.","image":"icon.svg","url":"http://twinery.org/","license":"Zlib","proofing":false,"source":"","setup":""});
\ No newline at end of file
......@@ -89,7 +89,7 @@ define(['macros', 'utils', 'utils/operationutils', 'datatypes/colour', 'internal
#string
*/
(["text", "string"],
(["text", "string", "str"],
/*
Since only primitives (and arrays) are passed into this, and we use
JS's default toString() for primitives, we don't need
......
{
"name": "twine-harlowe",
"version": "3.0.1",
"version": "3.0.2",
"author": "Leon Arnott",
"description": "The default runtime for Twine 2 stories",
"license": "Zlib",
......
......@@ -41,6 +41,9 @@ describe("primitive value macros", function() {
it("is aliased as (string:)", function() {
expect("(string: 2)").markupToPrint("2");
});
it("is aliased as (str:)", function() {
expect("(str: 2)").markupToPrint("2");
});
});
describe("the (random:) macro", function() {
it("accepts 1 or 2 whole numbers", function() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment