diff --git a/plugins/pretokenise.js b/plugins/pretokenise.js
index <HASH>..<HASH> 100644
--- a/plugins/pretokenise.js
+++ b/plugins/pretokenise.js
@@ -120,7 +120,7 @@
         return {
           startIdx : tk.start,
           endIdx : tk.end,
-          str : code.substr(tk.start, tk.end),
+          str : code.substring(tk.start, tk.end),
           type : tp
         };
       }};
fix issues with hack around acorn parser - eg 'get status'