Slide 10
Slide 10 text
App.FsGifUrlInputComponent = Ember.Component.extend({
layoutName: "components/fs-gif-url-input",
gifUrl: null,
urlIsValid: function(){
if(!!this.get("gifUrl")) {
return this.get("gifUrl").match(/^(ht|f)tps?:\/\/[a-
z0-9-\.]+\.[a-z]{2,4}\/?([^\s<>\#%"\,\{\}\\|\\\^\[\]`]+)?$/);
}
}.property("gifUrl")
});