Refactor regexp code
Refactor regexp code

Create a different function for regexp and string comparison.

ifad/data-confirm-modal,WowzaMediaSystems/data-confirm-modal,WowzaMediaSystems/data-confirm-modal,magicmarkker/data-confirm-modal,kntmrkm/data-confirm-modal,kntmrkm/data-confirm-modal-semantic-ui,WowzaMediaSystems/data-confirm-modal,Johaned/data-confirm-modal