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

Extend PARAM to add some extra options to expand dynamically the regular expressions

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.8
    • Fix Version/s: None
    • Component/s: Libraries
    • Labels:
    • Affected Branches:
      MOODLE_38_STABLE

      Description

      For MDL-67767, an extra validation with a regular expression has been added because there is no PARAM with the requirements for validating the URL scheme format.

      As Eloy has commented in MDL-68101:

      I've already seen a couple of cases (recently) where we want to just enable {{[a-zA-Z0-9_] }} maybe we should consider adding some new type or adding some "extra" param to allow the regular expressions to be dynamically expanded when some more char is allowed.... note this is a side idea, it doesn't belong strictly to this issue.

      So this issue is for adding this extra param. Something like: PARAM_ALPHANUM | PLUS_MINUS | PLUS_PLUS | PLUS_UNDERSCORE.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              sarjona Sara Arjona (@sarjona)
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: