Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-27429

MAP_INVALID_CHARACTERS in 'liferay-asset-tags-selector' could be implemented as Array

    Details

      Description

      In the liferay-asset-tags-selector component the map of invalid characters is implemented as an hash to provide super fast detection with MAP_INVALID_CHARACTERS[String.fromCharCode(charCode)] which is good, but horrible to maintain and look at.

      What about using an array and then convert it to an hash with Y.Array.hash which does exactly this?

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  6.1.30 EE GA3
                  6.2.0 CE M2