Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-3271

Remove SteveSoft Regex as a dependency

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.12.0
    • Component/s: jalview-j2s
    • Labels:
      None

      Description

      I don't doubt that there was a fine reason to use stevesoft Regex. But for simple operations, we should be able to use the native Java and JavaScript Regex.

      The problem is that this package adds 80+ classes and over 300K of code. It can't be necessary, in general.

      I propose reviewing the uses of that package case by case, starting with the most common (Newick, perhaps) and eventually abandoning that altogether. SwingJS uses Regex very efficiently, leveraging the native JavaScript version for no-load Regex processing. I suppose there are a few obscure differences between Java and JavaScript Regex, but they must be quite obscure.

        Attachments

          Activity

            People

            Assignee:
            gmungoc Mungo Carstairs
            Reporter:
            hansonr Bob Hanson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: