diff --git a/packages/phoenix/src/puter-shell/providers/ScriptCommandProvider.js b/packages/phoenix/src/puter-shell/providers/ScriptCommandProvider.js index 66be2041..1e50a089 100644 --- a/packages/phoenix/src/puter-shell/providers/ScriptCommandProvider.js +++ b/packages/phoenix/src/puter-shell/providers/ScriptCommandProvider.js @@ -24,7 +24,7 @@ export class ScriptCommandProvider { async lookup (id, { ctx }) { const { filesystem } = ctx.platform; - const is_path = id.match(/^[.\/]/); + const is_path = id.match(/^[./]/); if ( ! is_path ) return undefined; const absPath = resolveRelativePath(ctx.vars, id); diff --git a/packages/phoenix/src/util/wrap-text.js b/packages/phoenix/src/util/wrap-text.js index 478f1e76..86adfe84 100644 --- a/packages/phoenix/src/util/wrap-text.js +++ b/packages/phoenix/src/util/wrap-text.js @@ -16,6 +16,8 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ +/* eslint-disable no-control-regex */ + export function lengthIgnoringEscapes(text) { const escape = '\x1b'; // There are a lot of different ones, but we only use graphics-mode ones, so only parse those for now.