diff --git a/build.xml b/build.xml
index 749010c..d82e4bb 100644
--- a/build.xml
+++ b/build.xml
@@ -58,15 +58,17 @@
-
+
-
+
+
+
@@ -94,8 +96,7 @@ Walter Higgins
-
-
+
@@ -105,8 +106,7 @@ Walter Higgins
-
-
+
diff --git a/docs/release-notes.md b/docs/release-notes.md
index e081839..87a6af8 100644
--- a/docs/release-notes.md
+++ b/docs/release-notes.md
@@ -1,3 +1,11 @@
+# 2014 01 05
+
+Bug Fix: On Mac OS, alias plugin caused Exceptions due to missing
+.trim() function on String.
+
+Changed target for compilation to 1.6 so that ScriptCraft will work
+with both java 1.6 and 1.7.
+
# 2014 01 02
Added a warning in console at start-up if legacy directories are detected.
diff --git a/src/main/javascript/modules/utils/string-exts.js b/src/main/javascript/modules/utils/string-exts.js
index bb33e23..1e7159b 100644
--- a/src/main/javascript/modules/utils/string-exts.js
+++ b/src/main/javascript/modules/utils/string-exts.js
@@ -77,3 +77,9 @@ for (var method in formattingCodes){
return function(){return c+this;};
}(formattingCodes[method]);
}
+// wph 20140105 trim not availabe in String on Mac OS.
+if (!String.prototype.trim){
+ String.prototype.trim = function(){
+ return this.replace(/^\s+|\s+$/g,'');
+ }
+}