소스 검색

Bugfix in the URL regex

JC Brand 7 년 전
부모
커밋
585a182145
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/utils.js

+ 1 - 1
src/utils.js

@@ -24,7 +24,7 @@
     const b64_sha1 = Strophe.SHA1.b64_sha1;
     Strophe = Strophe.Strophe;
 
-    const URL_REGEX = /\b(https?:\/\/|www\.|https?:\/\/www\.)[^\s<>]{2,200}\b[/]/g;
+    const URL_REGEX = /\b(https?:\/\/|www\.|https?:\/\/www\.)[^\s<>]{2,200}\b\/?/g;
 
     const logger = _.assign({
         'debug': _.get(console, 'log') ? console.log.bind(console) : _.noop,