WIP: use es-modules

This commit is contained in:
j 2026-02-16 22:16:19 +01:00
commit 9c3450947b
146 changed files with 722 additions and 62 deletions

View file

@ -1,3 +1,5 @@
import Ox from './Namespace.js';
/*@
Ox.escapeRegExp <f> Escapes a string for use in a regular expression
(str) -> <r> Escaped string
@ -10,4 +12,4 @@ Ox.escapeRegExp <f> Escapes a string for use in a regular expression
// see https://developer.mozilla.org/en/JavaScript/Guide/Regular_Expressions
Ox.escapeRegExp = function(string) {
return (string + '').replace(/([\/\\^$*+?.\-|(){}[\]])/g, '\\$1');
};
};