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

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.2
    • Fix Version/s: 2.6
    • Component/s: Libraries
    • Labels:
    • Story Points:
      2
    • Sprint:
      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

            Assignee:
            skodak Petr Skoda
            Reporter:
            simoncoggins Simon Coggins
            Peer reviewer:
            Frédéric Massart
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            Eloy Lafuente (stronk7)
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              18/Nov/13