You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2020/01/17 21:11:04 UTC
[GitHub] [trafficcontrol] mitchell852 commented on issue #4305: Prevents
line breaks in delivery service remapText field (UI and API)
mitchell852 commented on issue #4305: Prevents line breaks in delivery service remapText field (UI and API)
URL: https://github.com/apache/trafficcontrol/pull/4305#issuecomment-575796441
> The regular expression you're using isn't multi-line; `^` and `$` match the beginning and end of a line, respectively. So I can still do this:
>
> ```js
> >> temp0.name
> <- "remapText"
> >> temp0.tagName
> <- "TEXTAREA"
> >> temp0.attributes[4]
> <- ng-pattern="/^[^\\n\\r]*$/"
> >> temp0.value
> <- "
> this is a test
> "
> >> temp0.validity.patternMismatch
> <- false
> >> temp0.classList.contains("ng-invalid")
> <- false
> >> temp0.classList.contains("ng-valid")
> <- true
> ```
well in the UI i am unable to enter anything on 2 lines so that's what i was going for
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services