소스 검색

Deal with @. Should generalize to any non A-Z.

Zachary Kotlarek 11 년 전
부모
커밋
c27fc89650
1개의 변경된 파일과 4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      web/includes/header.php

+ 4 - 4
web/includes/header.php

@@ -42,11 +42,11 @@ $( document ).on( "mobileinit", function() {
 		if ( !text ) {
 			return null;
 		}
-		if ( !isNaN(parseFloat(text)) ) {
-			return "#";
+		var short = text.slice( 0, 1 ).toUpperCase();
+		if ( short == '@' || !isNaN(parseFloat(text)) ) {
+			return '#';
 		} else {
-			text = text.slice( 0, 1 ).toUpperCase();
-			return text;
+			return short;
 		}
 	};
 });