Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-41953

Relax component name rules slightly to allow more than one digit at the end

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 2.6
    • 2.5.2
    • Libraries
    • 2
    • BACKEND Sprint 5

    Description

      The regexp on PARAM_COMPONENT is currently:

      /^[a-z]+(_[a-z][a-z0-9_]*)?[a-z0-9]$/
      

      Would it be possible to change it to:

      /^[a-z]+(_[a-z][a-z0-9_]*)?[a-z0-9]+$/
      

      The reason is that at Totara we have a module called 'feedback360' which doesn't meet the component criteria.

      It seems strange that you can have a module called 'feedback3' but not 'feedback360'.

      Attachments

        Activity

          People

            skodak Petr Skoda
            simoncoggins Simon Coggins
            Frédéric Massart Frédéric Massart
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              18/Nov/13