NPellet / visualizer

Other
43 stars 24 forks source link

Update smart-array-filter #1147

Closed lpatiny closed 2 years ago

lpatiny commented 2 years ago

We should use the new version of smart-array-filter

The first problem is that we don't publish the build and therefore bower can not be used anymore. We should load the file from 'lib'

We should also add the new features:

An array that allows to configure 'ignorePaths'. This should at the end be an array of strings

an object pathAlias. I guess in the preferences it should be a table with:

Path alias allows to use either a string that should be included in the jpath or a regexp that should match the jpath. Problem is to enter a regexp in a string field

I would suggest that if the string match ^\/(?<pattern>.*)\/(?<flags>i?)$ we consider it as a regexp and we create new RegExp(pattern, flags)