WIP: use es-modules
This commit is contained in:
parent
ec5b050496
commit
9c3450947b
146 changed files with 722 additions and 62 deletions
|
|
@ -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');
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue