orchidjs / tom-select

Tom Select is a lightweight (~16kb gzipped) hybrid of a textbox and select box. Forked from selectize.js to provide a framework agnostic autocomplete widget with native-feeling keyboard navigation. Useful for tagging, contact lists, etc.
https://tom-select.js.org
Apache License 2.0
1.67k stars 125 forks source link

[Bug]: Error in vanila.ts file #760

Closed CyrilleTanguay closed 1 day ago

CyrilleTanguay commented 3 months ago

Bug description

Hello,

Every time I type npm run build, I have this error:

./node_modules/tom-select/src/vanilla.ts:100:39
Type error: Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '\x09' instead.

   98 |         iterate( args, (_classes) =>{
   99 |                 if( typeof _classes === 'string' ){
> 100 |                         _classes = _classes.trim().split(/[\11\12\14\15\40]/);
      |                                                            ^
  101 |                 }
  102 |                 if( Array.isArray(_classes) ){
  103 |                         classes = classes.concat(_classes);

(BTW, I noticed a pull request that should fix that)

Expected behavior

I expected that there would be no errors

Steps to reproduce

  1. Install tom-select
  2. type npm run build

Additional context

From the package.json file:

nwalters512 commented 1 day ago

This should have been resolved by #777. Thanks for the report!